Skip to main content
Inspiring
June 6, 2018
Answered

Video Issues on iOS (missing audio)

  • June 6, 2018
  • 5 replies
  • 1934 views

The following plays properly on iPhone X and Android

Video is OK but the audio is missing on: iPhone 5S, iPhone 7+, iPhone 8+ (no other iPhone tested)

Testing using ffmpeg encode settings:

mp4libfdk_aac12800044100libx26412000001024x768

protected function test_triggeredHandler(event:Event):void

{

  vidClient = new Object();

  vidClient.onMetaData = onMetaData;

  nc = new NetConnection();

  nc.connect(null);

  ns = new NetStream(nc);

  ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);

  ns.client = vidClient;

  videoTexture=Texture.fromNetStream(ns , Starling.current.contentScaleFactor , onTextureComplete)

  ns.play("https://somevideo.mp4");

}

  private function onTextureComplete():void

  {

       videoImage = new Image(videoTexture)

       this.addChild(videoImage)

  }

  private function onMetaData():void

  {

       trace('on net onMetaData');

  }

  private function onNetStatus(event:NetStatusEvent):void

  {

       trace('on net status');

  }

I also found a test stream that you can use to reproduce the issue described above: https://content.jwplatform.com/manifests/yp34SRmf.m3u8

Taken from here: https://developer.jwplayer.com/tools/stream-tester/?playerversion=7

This topic has been closed for replies.
Correct answer dews

Issue resolved - not sure which version! Nothing to do with Blue Tooth or the Silence button..

5 replies

dewsAuthorCorrect answer
Inspiring
December 13, 2019

Issue resolved - not sure which version! Nothing to do with Blue Tooth or the Silence button..

dewsAuthor
Inspiring
October 15, 2018

Holy cr**!

So, nothing to do with the build - and everything to do with BlueTooth on iOS..  Once the phone connects to an audio source via BlueTooth - then audio only ever plays via BlueTooth until BlueTooth is disabled.  Except for the iPhone 5 - this only ever plays via BlueTooth whether it's actively connected to a BlueTooth device or not.

Marking this as solved - this issue is nothing to do with the codec -and opening another ticket.

dewsAuthor
Inspiring
October 8, 2018

Just fyi - libfdk_aac is the codec to stick with..

After months of sporadic issues with missing Audio - I'm no closer to knowing why - but every now and again a build I push out - the audio will be missing on iOS, although the iPhone 5S has NEVER played audio. Wondering if anyone else has/is running into a similar issues?

This has happened with builds from both Windows and MAC - both using FB with recommended settings for JDK etc..

Colin Holgate
Inspiring
June 7, 2018

Your example is an m3u8 files. As I remember it, you read the video entry and query a server to find out the current URL of the video, you don't just play the m3u8.

That aside, StageVideo is the best option for playing video.

dewsAuthor
Inspiring
June 7, 2018

You are correct - although it does actually play and you can open it using a text editor to see the actual stream URLs.  This just happened to be a link I found that can reproduce this problem.

There's also this taken from a resolved bug related to video on the Starling forum: https://s3.amazonaws.com/flaxbinpic/bunny.mp4

Ack your comment on StageVideo - good to know, ty.

dewsAuthor
Inspiring
June 7, 2018

Aside from using a native player or stage webview - do we have a workaround here?  Use of a media server or specific encode settings perhaps?