Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Feathers VideoPlayer on Android Devices #1831

Open
yooni126 opened this issue Dec 30, 2024 · 1 comment
Open

Issue with Feathers VideoPlayer on Android Devices #1831

yooni126 opened this issue Dec 30, 2024 · 1 comment

Comments

@yooni126
Copy link

I am using Feathers VideoPlayer to play videos in my project. The videos work perfectly on Desktop (AIR) but fail to play on Android devices.

Project Details:

Frameworks:
Feathers 3.5.0
Starling 2.3
AIR SDK: Version 50.1
Test Devices:
Android 12 and Android 14

Video Details:
The video is being loaded from an online URL:
https://fdpco.ir/Download/VideoHelpMobileMasterWin/mostatili.mp4
Video format: MP4 (H.264 for video and AAC for audio).

Relevant Code:

mVideoPlayer = new VideoPlayer();
mVideoPlayer.addEventListener(Event.READY, onVideoPlayerReady);
mVideoPlayer.addEventListener(TouchEvent.TOUCH, onVideoTriggid);
mVideoPlayer.addEventListener(FeathersEventType.CLEAR, videoPlayer_clearHandler);
mVideoPlayer.addEventListener(Event.COMPLETE, videoPlayer_complete);
mVideoPlayer.addEventListener(Event.IO_ERROR, IO_ERROR);
mVideoPlayer.addEventListener(MediaPlayerEventType.LOAD_PROGRESS, progress);
mVideoPlayer.videoSource = "https://fdpco.ir/Download/VideoHelpMobileMasterWin/mostatili.mp4";
addChild(mVideoPlayer);
mVideoLoader = new ImageLoader();
mVideoPlayer.addChild(mVideoLoader);
private function progress(e:Event):void
{
mVideoPlayer.removeEventListener(MediaPlayerEventType.LOAD_PROGRESS, progress);
mVideoPlayer.play();
}

Android Manifest (android.xml):

<android>
<manifestAdditions>
<![CDATA[
<manifest android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
<application>
<containsVideo>true</containsVideo>
</application>
]]>
</manifestAdditions>
</android>

The Issue:
The videos work perfectly on Desktop (Windows).
However, on Android devices, the videos fail to play, and nothing appears.
The device logs don't show any specific errors regarding the loading or playback of the video.
Steps I've Taken:
Verified that the online video URL is valid and works in a mobile browser.
Confirmed that the video format is MP4 (H.264 and AAC).
Added the INTERNET permission to android.xml.
Tested with different formats and lower resolutions (720p and 480p), but the issue persists.
Question:
Has anyone encountered this issue before or knows why Feathers VideoPlayer might fail to play videos on Android? Is there an additional configuration I am missing?
Any help or suggestions would be greatly appreciated.

Thanks in advance for your time!

@joshtynjala
Copy link
Member

You might get better support here:

https://github.com/airsdk/Adobe-Runtime-Support/discussions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants