1 Reply Latest reply on Aug 26, 2011 7:29 AM by TomKordys

    Is there a method to begin stream from a specified position?

    steveperr124 Level 1

      Hi there

       

      I am trying to ensure I am not missing something with regard to the implementation of the seek trait, and to see if there is a method by which i can begin a stream from a specified position.

       

      As I understand, the SeekTrait of a Media Element only becomes available when its 'canSeek' property returns true, which only seems to occur once playback begins.

       

      This is causing me a bit of a headache with reporting metrics. For example if i want to begin a stream from a certain position, lets say 60 secs in, then in order to do this ( as far as i understand ) :

      1 ) I must play the stream from beginning, listen for the 'canSeekChange' property to return true, making the Seek Trait available,

      2 ) then perform a seek(60) method call and await the Seek request to complete before playback

       

      Problem is that this will by default record an initial 'play' metric from where it begins at 0, then a second play after is it completes the seek to 60secs. This feature is becoming commonplace in video services, where a user can 'resume' watching some ( longform ) content when returning to view it in a separate session i.e. the next day.

       

      Is this the only way to play a stream from a specified position???

       

      Thanks

       

      Steve