Results 1 to 4 of 4

Thread: Playing only a part of a video/audio file over RTMP with JWPlayer

  1. #1
    Join Date
    Feb 2012

    Question Playing only a part of a video/audio file over RTMP with JWPlayer

    Hi Wowza community.

    We have strict rules on our content so we have to distribute only parts of our audio and video files. We are currently using RTMP as our protocol and we have written a module that sets start time and end time on our files.
    This is our current code that overrides play():

    AMFDataList customDataList = new AMFDataList();
    customDataList.add(new AMFDataItem("mp3:"+info.getFileName()));
    customDataList.add(new AMFDataItem(info.getOffset()*1000)); // start
    customDataList.add(new AMFDataItem(info.getExtent()*1000)); //duration
    customDataList.add(new AMFDataItem(true)); //reset
    invokePrevious(this, client, function, customDataList);
    This code works very well. Our problem is that we are unable to seek in the flash player (JWPlayer) when we cut the file. When we drag the slider the video/audio stops. What can we do to fix this problem?

  2. #2
    Join Date
    Dec 2007


    The problem is that this method does not change the metadata in any of the segments, esp the first segment and especially the metadata "duration". Take a look at the bottom of this article for how to override duration:


  3. #3


    I have a JWplayer, when I start a stream by Wowza RTMP from my player and debug my code,
    only the event onStreamCreate was called, the play () method that i have overridden was not called.
    Please help me.

    public void play(IClient client, RequestFunction function,
                AMFDataList params) {
            getLogger().info("Play Method!");

  4. #4


    We'd have to see the rest of the code to make any suggestions. Perhaps the module was not added to the application/stream you were playing.

Similar Threads

  1. Replies: 3
    Last Post: 03-19-2014, 03:38 PM
  2. jwplayer 6 pre-roll video xml file
    By manyblue in forum Media Players and Devices
    Replies: 4
    Last Post: 03-14-2014, 06:43 AM
  3. Nothing happen when playing rtmp link on jwplayer
    By feezixora in forum Media Players and Devices Discussion
    Replies: 1
    Last Post: 03-23-2012, 12:54 AM
  4. relay (repeater) rtmp video/audio to rtmp audio only output (strip video)
    By dptekco in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 03-22-2012, 07:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts