-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
mediaelement not working with APK files built with Cordova #2195
Comments
To be honest I'm not sure about it. I haven't used Cordova. I'd think that it is since the library is built now in pure Javascript. But again I'm not an expert on that area. |
Do you have any updates on this? Can you get any errors/hints from APK? |
I tried to log any errors but I got nothings. But I still believe that there is some kind of conflict because I put the mediaelement player on a separated file on my website, added iframe to my HTML5 mobile application and I played the video correctly. It is important to me that you could solve this problem and I will send you any errors or updates I have. |
Thanks. Until you provide me any hints to where to look I can't do anything. I don't have the environment to attempt to reproduce this. Can you provide your APK or something that I can check on Android, please? |
And also, which version/device of Android are you using for this? |
Wait what if you add the YouTube API and Dailymotion libraries for your app? The reason I'm asking this is because the player attempts to load the libraries on-demand (meaning, it injects a script tag to load the new libraries). But I don't know if that's valid on a situation like yours. So I'd include https://api.dmcdn.net/all.js and https://www.youtube.com/player_api in the |
Sorry, I cannot because it is a client app not mine. But you can create a sample application on this website https://monaca.io/ and create an APK in few minutes. I'm testing on Lenovo A6000 Android 5. There are some old posts talking about the same problem. http://stackoverflow.com/questions/16000231/mediaelementjs-and-phonegap I will try your solution, and I will tell you if it works |
Thanks I'll try to check this as well on my side. Let me know if the above worked for you |
I tried the APK with http video not from youtube and not worked too |
Can you share here the markup you used so I can imitate exactly what you are experiencing please? Then I'll try to convert it to apk and check what's going on |
Just FYI, I tried to use Monaca and created and APK and viewed through ARC Welder extension, and worked for me. Couldn't see the video but I got the audio. Using that extension in a non-Chrome OS device could be buggy, but everything worked. So whatever your issue is, I assume it must be some configuration I'm not aware of. |
Thank you, I will check the configurations |
Hello,
I'm using mediaelement.js with Cordova App to play youtube and dailymotions videos in one player. It works fine in the android browser but not working when I build the apk file. Are they compatible ?
Thank you
The text was updated successfully, but these errors were encountered: