Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.82k stars 821 forks source link

Video Issues on iOS (missing audio) #1029

Closed urthling closed 6 years ago

urthling commented 6 years ago

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)

Tested using AIr 27/2.2 through 30/2.3

Testing using ffmpeg encode settings:

mp4 libfdk_aac 128000 44100 libx264 1200000 1024x768

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

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

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');
  }
PrimaryFeather commented 6 years ago

Hey @urthling, from your description, this seems to be a bug in the AIR runtime, not Starling. Could you create the issue here instead? → https://github.com/Gamua/Adobe-Runtime-Support And don't forget to open a bug report on tracker.adobe.com, as well.

Thanks in advance!

urthling commented 6 years ago

You bet - did as you suggested.. ty for heads up and of course for Starling! :)

PrimaryFeather commented 6 years ago

Perfect, thanks! :smile: