Save h.264 video, load to StageWebView
is it possible to load a video and save it to the file system,
then load it back in and play it in stageWebView?
When i load the saved video, it is in byteArray format.
is it possible to load a video and save it to the file system,
then load it back in and play it in stageWebView?
When i load the saved video, it is in byteArray format.
Hi,
assuming that you've access to raw bytes (that would be best if you receive data asynchronously) I think that you could certainly save data into app storage directory (it lies within application data sandbox on iOS) in a way like:
var file:File = File.applicationStorageDirectory.resolvePath("myVideo.mp4");
then open FileStream and write that data as it arrives (or all at once).
Once you have that file created you could:
- load it directly as discussed here:
http://forums.adobe.com/message/3694991#3694991
- load it via thin "html" hosting web page (you would have to create that thin html hosting page for that video file as well):
http://sonnati.wordpress.com/2011/04/26/air-2-6-for-ios-and-video-playback/
(both solutions require StageWebView as you noted)
hth,
regards,
Peter
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.