Skip to main content
Participating Frequently
September 28, 2012
Question

F4V Stream don't play on iOS devices

  • September 28, 2012
  • 2 replies
  • 6366 views

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 has been closed for replies.

2 replies

meenas76752462
Participant
December 3, 2016

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?

chris.campbell
Community Manager
Community Manager
October 3, 2012

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

Thanks,

Chris

Known Participant
January 25, 2013

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

Participating Frequently
February 1, 2013

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