Reputation: 864
I need to embed a movie file into an AS3 project and play it. I've only used NetStreams before, but since I want to have it as an embedded resource this time, that won't be necessary.
I know it's possible for MP3's and other resources, but can't find any clear info on video like mp4.
It's hard to google the problem because of the ambiguity of the word 'embed'
Upvotes: 0
Views: 1281
Reputation: 1517
You can embed anything as binary data using metadata like this:
[Embed("file.mp4", mimeType="application/octet-stream")]
And then you can get that data as ByteArray at runtime. So if you can use byte array for playback, then yes, it is possible.
Upvotes: 1