Ticket #369 (closed feature: fixed)

Opened 4 years ago

Last modified 4 years ago

constrain time from 'start' to 'start + duration'

Reported by: jeroen Owned by: jeroen
Priority: Milestone: Flash 4.4
Component: Keywords:
Cc: Forum thread:

Description (last modified by jeroen) (diff)


Change History

comment:1 Changed 4 years ago by jeroen

This is a more advanced implementation of the start + offset functionality, creating really useful chapter playlists. A couple of requirements on the server are needed:

  • The ability to start with an offset time without waiting for the chunk of metadata first
  • The ability to stop loading beyond a certain point of the video

mod_h264_streaming and rtmp both offer these functionalities.

comment:2 Changed 4 years ago by jeroen

  • Owner set to jeroen

comment:3 Changed 4 years ago by jeroen

  • Summary changed from make the controlbar scrubber only run from 'start' to 'start + duration' to constrain time from 'start' to 'start + duration'

comment:4 Changed 4 years ago by jeroen

  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)

Restricting the start and duration works for all models, except the YoutubeModel.

Here's an overview per model:

  • ImageModel: although it's not really useful since images are static).
  • HTTPModel: the file is first loaded from the beginning, until metadata is received. Then, a seek() to the startposition is done.
  • RTMPModel: the second parameter of the NetStream.play() command is a start position. This is used, so there's no wait for metadata and a dual request (as needed with HTTP).
  • SoundModel: surprisingly, Flash sends buffermessages until the chosen startpoint is loaded. Very cool.
  • VideoModel: unfortunately, the video starts playing back from the beginning. The controlbar stays at 0 though.
  • YoutubeModel: not implemented.

comment:5 Changed 4 years ago by jeroen

  • Type changed from enhancement to feature
  • Description modified (diff)
Note: See TracTickets for help on using tickets.