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

Videos are not shown in air app

New Here ,
Apr 12, 2019 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

Views

1.0K

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

correct answers 1 Correct answer

Community Expert , Apr 15, 2019 Apr 15, 2019

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

Votes

Translate

Translate
Community Expert ,
Apr 12, 2019 Apr 12, 2019

Copy link to clipboard

Copied

the paths need to be relative, not absolute.

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 ,
Apr 12, 2019 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?

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 ,
Apr 13, 2019 Apr 13, 2019

Copy link to clipboard

Copied

are you using code to load the video or using the flvplayback 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 ,
Apr 13, 2019 Apr 13, 2019

Copy link to clipboard

Copied

Code

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 ,
Apr 13, 2019 Apr 13, 2019

Copy link to clipboard

Copied

copy and paste (only) the relevant code.

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 ,
Apr 13, 2019 Apr 13, 2019

Copy link to clipboard

Copied

you mean this code?

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

playerVideo.player.play();

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 ,
Apr 14, 2019 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.

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 ,
Apr 14, 2019 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?

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
Adobe Employee ,
Apr 15, 2019 Apr 15, 2019

Copy link to clipboard

Copied

Hi - Which version of the AIR SDK that you have used to publish the app? 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
New Here ,
Apr 15, 2019 Apr 15, 2019

Copy link to clipboard

Copied

Hi Mohanaraj,

I'm using Air 26.0 for desktop

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

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

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

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 ,
Apr 15, 2019 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

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 ,
Apr 15, 2019 Apr 15, 2019

Copy link to clipboard

Copied

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

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 ,
Apr 15, 2019 Apr 15, 2019

Copy link to clipboard

Copied

LATEST

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

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