Skip to main content
October 17, 2011
Question

Play the video from a precise point in time

  • October 17, 2011
  • 1 reply
  • 1571 views

Hi all,

does anybody know how to start a video playing from a precise point in time?

Using rtmp protocol to stream a video:

rtmp:\\my-server\vod\my-video.mp4

is it possible to use a similar form, as the following:

rtmp:\\my-server\vod\my-video.mp4\t=00:20:21

to start video file from that point?

Thanks in advance.

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    October 17, 2011

    Basically this needs to be coded - you can hard-code the value or take it as input and then pass to code which does ns.play()

    ns.play takes start parameter and you can specify same so that you start from exact that position.

    Say in you example 00.20.21 would come to 1221 seconds - so the ns.play would like below

    ns.play("mp4:my-video",1221,-1,true)

    October 17, 2011

    Hi SE,

    thanks for reply.

    So, how can I use ns.play?

    Something like:

    rtmp:\\my-server\vod\ns.play("mp4:my-video",1221,-1,true)

    Is it correct?

    Adobe Employee
    October 17, 2011

    Nope - not that way. You would have to modify source code of your client to do that. What are you using to play back the video - do you have source code for the same.

    ns.play - would be present in source code of the swf client which you are using.