Netstream.seek () does not work for MP4 video in Flash

I am using a video player in ActionScript, and I need to determine the start time for the video to play. Netstream.seek (pos) works for FLV files, but does not work for H.264 files (the player starts playing video from the very beginning). Does anyone know what the problem is?

(I use Netstream to do this instead of adding a parameter with starting time when I call the Netstream.play method because I don't have Flash Media Server).

+3
source share
2 answers

Flash does not support sending byte headers, so you always get byte 0-. You can search using pseudo-streams ( http://h264.code-shop.com/trac ). Basically, do you get get param? Start = 1234, then the server server corrects the moov header, moves it to the beginning of the file and starts serving it at the starting position. (Essentially, splitting the file on the fly, with a starting position of 1234 and submitting a new generated file)

+2
source

I know this works with the latest builds of Red5 1.0, I can not speak for FMS or Wowza.

0
source

All Articles