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
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
Copy link to clipboard
Copied
the paths need to be relative, not absolute.
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?
Copy link to clipboard
Copied
are you using code to load the video or using the flvplayback panel?
Copy link to clipboard
Copied
Code
Copy link to clipboard
Copied
copy and paste (only) the relevant code.
Copy link to clipboard
Copied
you mean this code?
playerVideo.player.load("3_gennaio-storia_video1.mp4");
playerVideo.player.play();
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.
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?
Copy link to clipboard
Copied
Hi - Which version of the AIR SDK that you have used to publish the app? Thanks!
Copy link to clipboard
Copied
Hi Mohanaraj,
I'm using Air 26.0 for desktop
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.
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.
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.
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
Copy link to clipboard
Copied
Thanks Kglad, but I got a doubt: could be the air version installed in the PC?
Copy link to clipboard
Copied
no, it's the air version you use to publish your air app.