Highlighted

Videos are not shown in air app

New Here ,
Apr 12, 2019

Copy link to clipboard

Copied

Hello,

I made an air desktop app using Animate for mac.

in this app there are some local .mp4 videos (loaded with path in as3  in an instance of FLVPlayback2) that I embedded during the publication.

I installed the air app under a pc  running windows 10

and if I watch in the program directory videos are all in the root like it should be, but if a launch the app and I try to run a video, nothing is showed.

The other things are all ok and work fine.

If I publish the application with embedded runtime (.app because it's a mac) and I launch it with my mac, videos work fine.

where can be the problem?

thanks for any answer

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

you can use an older version of animate or just an older version of air with your animate version, Find and download archived versions of Adobe AIR SDK

TOPICS
Discussions

Views

523

Likes

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

Videos are not shown in air app

New Here ,
Apr 12, 2019

Copy link to clipboard

Copied

Hello,

I made an air desktop app using Animate for mac.

in this app there are some local .mp4 videos (loaded with path in as3  in an instance of FLVPlayback2) that I embedded during the publication.

I installed the air app under a pc  running windows 10

and if I watch in the program directory videos are all in the root like it should be, but if a launch the app and I try to run a video, nothing is showed.

The other things are all ok and work fine.

If I publish the application with embedded runtime (.app because it's a mac) and I launch it with my mac, videos work fine.

where can be the problem?

thanks for any answer

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

you can use an older version of animate or just an older version of air with your animate version, Find and download archived versions of Adobe AIR SDK

TOPICS
Discussions

Views

524

Likes

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
Apr 12, 2019 0
Adobe Community Professional ,
Apr 12, 2019

Copy link to clipboard

Copied

the paths need to be relative, not absolute.

Likes

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
Reply
Loading...
Apr 12, 2019 0
New Here ,
Apr 12, 2019

Copy link to clipboard

Copied

Thank you kglad for your answer, but the paths are all relative, (only the name of the video) in the code.

I was thinking to put an absolute path with the path of the installation dir.

But there is a way to do a remote debug to see what is happening?

Likes

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
Reply
Loading...
Apr 12, 2019 0
Adobe Community Professional ,
Apr 13, 2019

Copy link to clipboard

Copied

are you using code to load the video or using the flvplayback panel?

Likes

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
Reply
Loading...
Apr 13, 2019 0
New Here ,
Apr 13, 2019

Copy link to clipboard

Copied

Code

Likes

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
Reply
Loading...
Apr 13, 2019 0
Adobe Community Professional ,
Apr 13, 2019

Copy link to clipboard

Copied

copy and paste (only) the relevant code.

Likes

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
Reply
Loading...
Apr 13, 2019 0
New Here ,
Apr 13, 2019

Copy link to clipboard

Copied

you mean this code?

playerVideo.player.load("3_gennaio-storia_video1.mp4");

playerVideo.player.play();

Likes

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
Reply
Loading...
Apr 13, 2019 0
Adobe Community Professional ,
Apr 14, 2019

Copy link to clipboard

Copied

i assume playerVideo is a movieclip and player is your flvpb component.

if so, use a previous version of animate.  2019 has a problem with mp4's.

Likes

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
Reply
Loading...
Apr 14, 2019 0
New Here ,
Apr 14, 2019

Copy link to clipboard

Copied

yes you're right playerVideo is a  movieclip and player is the FLVPlayer.

I'm using the 18 version.

but there is a way to debug from the player, and see were it goes to search for the video?

Likes

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
Reply
Loading...
Apr 14, 2019 0
Adobe Employee ,
Apr 15, 2019

Copy link to clipboard

Copied

Hi - Which version of the AIR SDK that you have used to publish the app? Thanks!

Likes

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
Reply
Loading...
Apr 15, 2019 0
New Here ,
Apr 15, 2019

Copy link to clipboard

Copied

Hi Mohanaraj,

I'm using Air 26.0 for desktop

Likes

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
Reply
Loading...
Apr 15, 2019 0
New Here ,
Apr 15, 2019

Copy link to clipboard

Copied

I found the issue.

I transcoded the .mp4 file to .flv and now it works.

I don't know why on a mac the mp4 were played, maybe it's a codec matter, but with the use flv instead of mp4 now works also on a pc.

Anyway thanks for the help supplied.

Likes

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
Reply
Loading...
Apr 15, 2019 0
Adobe Community Professional ,
Apr 15, 2019

Copy link to clipboard

Copied

that's not the issue.  the issue is problematic newer air versions.

older air versions work with mp4's.  newer ones don't work with mp4's.  eg,

air 28 and 30 work with mp4's.

air 32.0.0.109 fails to load and play mp4's.

i didn't test with other air versions but i don't remember any older versions having a problem with mp4's.

as a work-around you can avoid mp4's or use an older air version.

Likes

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
Reply
Loading...
Apr 15, 2019 0
New Here ,
Apr 15, 2019

Copy link to clipboard

Copied

Yes, of course is a work around.

But in the publish settings there isn't the option to use a different version of AIR.

Likes

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
Reply
Loading...
Apr 15, 2019 0
Adobe Community Professional ,
Apr 15, 2019

Copy link to clipboard

Copied

you can use an older version of animate or just an older version of air with your animate version, Find and download archived versions of Adobe AIR SDK

Likes

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
Reply
Loading...
Apr 15, 2019 0
New Here ,
Apr 15, 2019

Copy link to clipboard

Copied

Thanks Kglad, but I got a doubt: could be the air version installed in the PC?

Likes

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
Reply
Loading...
Apr 15, 2019 0
kglad LATEST
Adobe Community Professional ,
Apr 15, 2019

Copy link to clipboard

Copied

no, it's the air version you use to publish your air app.

Likes

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
Reply
Loading...
Apr 15, 2019 0