Skip to main content
Participating Frequently
Sep 28, 2012 6:42 AM UTC
Question

F4V Stream don't play on iOS devices

I'm trying to play a recorded stream from flash media server on mobile devices. I'm able to play FLV files but F4V files (like the sample files included in the VOD application in FMS)  won't play on iOS device (tested on iPad 1 and iPhone 4s).

The odd part is that this videos play fine in the simulators included in Flash Builder 4.6 and also in Android devices and BlackBerry Playbook.

FLV videos play fine in all devices and simulators.

Updating Air SDK to 3.4 didn't solve the problem.

I tried with Flash Builder 4.7 and didn't solve it neither.

Source:

....

protected var nc:NetConnection = new NetConnection();

protected var ns:NetStream;

protected function application1_creationCompleteHandler(event:FlexEvent):void

{

     nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);

     nc.connect("rtmp://server-url:port/application/instance/");

}

protected function onNetStatus(event:NetStatusEvent):void

{

     if(event.info.code == "NetConnection.Connect.Success"){

          ns = new NetStream(nc);

          ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStreamStatus);

          ns.client = this;

          ns.play("mp4:folder/sample1_1000kbps.f4v");

          var video:Video = new Video();

          video.attachNetStream(ns);

          container.addChild(video);

     }

}

......

Events received from simulator:

     NetConnection.Connect.Success

     NetStream.Play.Reset

     NetStream.Play.Start

     NetStream.Buffer.Full

     NetStream.Video.DimensionChange  <--- Video playing

Events received from iOS device:

     NetConnection.Connect.Success

     NetStream.Play.Reset

     NetStream.Play.Start

     NetStream.Buffer.Full <-- Stuck, no video, no audio

Anyone has any idea? Why the f4v streams are not playing on iOS devices?

Regards

This topic is closed to new replies. Start a new post to keep the conversation going.

18 replies

meenas76752462
Participant
Dec 3, 2016 8:36 AM UTC

Is there any other solution found for this issue? I have also tried StageVideo it doesn't work. FLV(Sorenson)  works fine in emulator as well as in iPad. F4V works on the emulator but not in the iPad. Is there any other solution for this?

Translate
chris.campbell
Legend
Oct 3, 2012 3:04 AM UTC

I've forwarded this to the iOS team for their review.

Thanks,

Chris

Translate
Known Participant
Jan 25, 2013 6:52 AM UTC

I have the same problem. my flv files are playing well but player is not able to play f4v files on ios. I am using the same way (stream over rtmp) to play files.

Chris have you got any response from your iOS team?

Also I am using StageVideo to play files.Please suggest a solution ASAP.

Thanks

Translate
Participating Frequently
Feb 1, 2013 8:39 AM UTC

We didn't find a solution yet, we still have the same problem to play f4v files.

Hope we have a solution or workaround soon.

Thanks

Translate