• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

F4V Stream fails to play on iOS device

New Here ,
Sep 26, 2012 Sep 26, 2012

Copy link to clipboard

Copied

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

Views

2.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 06, 2012 Oct 06, 2012

Copy link to clipboard

Copied

I don't know if this is helpful in your case but we're playing video within our ios ipad app ( air 3.4 ) using stage video.

The video is streamed from Vimoe pro ( HTTP Live Streaming )

Reliabity and Quality are great.

The Vimeo fees are only about $200 pa

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 09, 2012 Oct 09, 2012

Copy link to clipboard

Copied

Thank you @Ged_mc, it's nice to know that it works with HLS.

I think my problem is because we stream H264 through RTMP instead of HTTP, but dunno why it works in every scenario but iOS.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 10, 2012 Oct 10, 2012

Copy link to clipboard

Copied

LATEST

We also had it streaming from http on ios using stage video.

Again from Vimeo pro - before they added HLS

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines