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

loading mp4 in air for iOS not showing in ipad

Participant ,
Mar 29, 2017 Mar 29, 2017

Copy link to clipboard

Copied

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

TOPICS
ActionScript

Views

1.4K

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
Community Expert ,
Mar 29, 2017 Mar 29, 2017

Copy link to clipboard

Copied

add video.mp4 to your included files panel.

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

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 ,
Feb 25, 2018 Feb 25, 2018

Copy link to clipboard

Copied

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.

img1.png

Thanks.

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
Community Expert ,
Feb 25, 2018 Feb 25, 2018

Copy link to clipboard

Copied

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

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 ,
Feb 25, 2018 Feb 25, 2018

Copy link to clipboard

Copied

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

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 ,
Feb 26, 2018 Feb 26, 2018

Copy link to clipboard

Copied

Hi,

I tried 24 air version and it didn't work. It gives me compile error.

What other option can I try?

Regards.

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
LEGEND ,
Feb 27, 2018 Feb 27, 2018

Copy link to clipboard

Copied

LATEST

I'm not sure if straight net stream can handle H.264 on iOS. Also, for sure FLVPlayback doesn't. The best performance for playing H.264 is to use StageVideo, and it does work on iOS and Android. This 7 year old article is still useful:

Getting started with Stage Video

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