Skip to main content
Participating Frequently
March 15, 2012
Question

StageVideo on iOS startup problems

  • March 15, 2012
  • 9 replies
  • 2987 views

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.

This topic has been closed for replies.

9 replies

Participant
December 7, 2012

Hey guys, i am also having the same issue as well. which is bit frustrating.

also, i had the same issue with animation just starting, even though i have netStream.pause().

basically i wanted to load the video (without the zooming effect) and load it paused till user decides to play it.

did you have any luck with either of this problem? thanks!

gordogreAuthor
Participating Frequently
September 18, 2012

Someone else has posted this same issue here: http://forums.adobe.com/message/4334071

There is apparently a bug open for this, but I don't know the bug number of the current status.

Inspiring
April 9, 2012

Just curious ..   is netStream absolutely needed ?   I have found great performance in loading local videos with the iOS native player instead.  This way you can take advantage of AirPlay as well

Participating Frequently
April 9, 2012

Using a StageWebView for the iOS native player provides great performance, but limited control.  For example, in my app I need a carousel of video objects that the user can scroll horizontally.  If I did that with a StageWebView, the WebView would capture the touch events instead of the AIR app. I could pass that "touch" to AIR via JavaScript, but only to close the video.  The user would need to lift up their finger and touch a second time to then scroll the carousel.

Inspiring
April 9, 2012

Why not have the carousel of poster images...  when you click on the poster image it opens a fullscreen stageWebView playing in the native player.   Have a custom Close button that returns you to the carousel ?

Participant
April 4, 2012

I am experiencing the zooming issue as well. Did you find a solution?

Participating Frequently
April 9, 2012

I think I encountered this issue (one of many issues) when working with NetStream and StageVideo on iOS.  If I recall, I used the width and height of the video found in its metadata to initially size the StageVideo. 

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#event:onMetaData