I have an Air for iOS mobile application that utilizes StageVideo to play locally cached h.264 mp4 files.
My video playback code is very bare-bones and relies on using NetStream directly - I'm not using OSMF.
In general I have no problem playing the video files, but there are two problems I'm facing that seem peculiar because they only occur for H.264 content - if I run the same code with vp6 content, these problems do not occur.
1) all calls to NetStream.play(videoUrl, startTime, duration) always play the full duration of the video file, even if I specify '1' for the duration.
This is a problem because I would prefer to load up the first frame and wait for user interaction to begin further playback.
This problem occurs with both vp6 .flv files as well as for H.264 .mp4 files.
2) when I invoke NetStream.play() the first time, the StageVideo renders some strange "zoom in" effect, where the video appears to be initially rendered at a size of (1,1), then within about 250 milliseconds it grows to be the full size I had requested for the StageVideo.viewport.
I have tried all manner of different .mp4 content, and this very odd "zooming" effect is always present. I've never seen it happen with vp6 .flv content and I always see it happen with H.264 .mp4 content. I am particularly perplexed because it is so jarring to see, and yet I've never come across anyone else mentioning this behavior.
I could probably post a full demo application if need be, but I'm hoping some of the folks with existing experience with StageVideo on iOS can shed some light on these two issues.
Thanks.