Benjamin Michel
Benjamin Michel

Reputation: 131

AS3 Video & NetStream : MP4 video not showing with appendBytes

I'm trying to stream some MP4 video in a Video component in an Air application, using a NetStream and the netStream.appendBytes method. The source video is coming from a socket so I need to append the Bytes, but it was not working. So I tried to appendBytes from a file read from the system, it still wasn's working. I tried putting that file as the source of a VideoPlayer element, and it did work.

I then tried the appendBytes method to open an flv file from the system and it did work, so I knew I was not doing something wrong in my process. What does VideoPlayer do that I don't when I use the appendBytes method, that would make it work like I want ?

Upvotes: 1

Views: 1626

Answers (1)

ansiart
ansiart

Reputation: 2571

You cannot use appendBytes and mp4 containers. AppendBytes works with FLV frames only.

Upvotes: 1

Related Questions