Skip to main content
Inspiring
March 29, 2017
Question

loading mp4 in air for iOS not showing in ipad

  • March 29, 2017
  • 1 reply
  • 1624 views

dear frieds,

I want to load mp4 file in ios, its loading in desktop while testing, not loading in ipad. pls help me iam using following code:

var nc: NetConnection = new NetConnection();
nc.connect(null);

var ns: NetStream = new NetStream(nc);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns.play("video.mp4");
function asyncErrorHandler(event: AsyncErrorEvent): void {
trace(event);
// ignore error
}

var vid: Video = new Video();
vid.attachNetStream(ns);
vid.width = 640;
vid.height = 360;
addChild(vid);

Thanks and Regards,

Syed Abdul Rahim

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 29, 2017

add video.mp4 to your included files panel.

if you think it's already added, attach a screenshot of the panel.

Participant
February 25, 2018

Hi,

I have the same problem. I want to load the mp4 file in ios and it doesn't work. You could help me, I just get it to load on the pc.

Thanks.

Participant
February 26, 2018

try with a an older (than 24) air version.


I'm using 28 air version. Thanks, I'm going to try 24 air version.