Skip to main content
Known Participant
July 26, 2010
Answered

Different Playback Speeds?

  • July 26, 2010
  • 1 reply
  • 456 views

I know as of 3.5.3 you're supposed to be able to use the Smart Seek functionality to do trick modes like 1/2x, 2x, etc.  How is this actually done?  I understand the new seeking/stepping, just not how to playback at a different rate.

Thanks.

    This topic has been closed for replies.
    Correct answer

    Hi,

    You are right when you say that 3.5.3 has the capability called Smart Seek and it can be used for trick modes, however, this can only be done for data in the buffer and is not very straight forward and would require coding. You need to use the api NetStream.step() for it. Let's say your video is playing at 40 fps (frames per second) and you have a button to get it to 2x, then you will need to program a timer to call ns.step(8) evey 1/10th of a second. Similarly, for 1/2x you may need to pause the video and program it in a way to step 20 frames per second, let's say step 2 frames every 1/10th of a second

    To know more about these features you may refer:

    http://blogs.adobe.com/actionscriptdocs/2010/06/flash_media_server_stream_reco.html

    http://help.adobe.com/en_US/FlashMediaServer/3.5.3/FeaturesGuide/flashmediaserver_3.5.3_features.pdf

    Please revert back if you need more info.

    Thanks,

    Abhishek.

    1 reply

    Correct answer
    July 27, 2010

    Hi,

    You are right when you say that 3.5.3 has the capability called Smart Seek and it can be used for trick modes, however, this can only be done for data in the buffer and is not very straight forward and would require coding. You need to use the api NetStream.step() for it. Let's say your video is playing at 40 fps (frames per second) and you have a button to get it to 2x, then you will need to program a timer to call ns.step(8) evey 1/10th of a second. Similarly, for 1/2x you may need to pause the video and program it in a way to step 20 frames per second, let's say step 2 frames every 1/10th of a second

    To know more about these features you may refer:

    http://blogs.adobe.com/actionscriptdocs/2010/06/flash_media_server_stream_reco.html

    http://help.adobe.com/en_US/FlashMediaServer/3.5.3/FeaturesGuide/flashmediaserver_3.5.3_features.pdf

    Please revert back if you need more info.

    Thanks,

    Abhishek.

    tehxike1Author
    Known Participant
    July 27, 2010

    Great, thank you...  I had played with step but didn't make the conclusion that it's how we achieve the various playback speeds.