Results 1 to 2 of 2

Thread: how to get played duration on playlistitem

  1. #1

    Default how to get played duration on playlistitem

    i have playlist playing i switch to live stream and then back to playlist

    when i switch back to playlist i resumes from playlistitem it paused but from the start

    how can get the duration of play of the playlist item so that i can store it and when i resume i can put it in start so that is starts from where it left


  2. #2
    Join Date
    Dec 2007


    There is nothing built-in to accomplish this. Understand that there is really only one playlist which switches between sources which can be live streams and files, as in your case. But the output is a continuous live stream. The best way to approach this is server-side (though you might be able to do something client-side in a RTMP client) using the IStreamActionNotify notifier (shown in this example), which fires when a Stream class stream (what type of stream the scheduler and loop-until-live example uses, if that is what you are using) switches sources. This is the hook you would need to see how much of the loop clip played when the live stream interrupted. You will need to use a timer too.


Similar Threads

  1. Streaming Video Not Played
    By muthumca in forum General Forum
    Replies: 7
    Last Post: 08-13-2014, 06:23 AM
  2. Currently played video
    By piotrb in forum General Forum
    Replies: 3
    Last Post: 03-19-2012, 01:05 PM
  3. Understanding PlaylistItem indexes when calling and removeFromPlaylist
    By Maurok in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 12-29-2011, 12:41 PM

Posting Permissions

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