'Video will not play in JW Player on Android
I cannot get JW Player to play anything on an Android device (real or emulated). In fact, even the default video and default setup that comes packaged in the JW Player download will not play! I've tried re-encoding the video... nope. I've tried prioritizing the HTML5 player over the Flash player... nope. I keep getting the error:
Cannot play video
Sorry, this video cannot be played.
Worth noting, it works fine on the web and in an iPhone.
UPDATE: Here's an example of the unmodified default player directly from the JW Player download: http://sambot.com/jw/. Try it on your Android...
What am I doing wrong here?
Solution 1:[1]
where is your video file located? if it's located in your assets folder I think it won't run. try putting it in other directory like your sdcard or data folder
hope this helps
Solution 2:[2]
Much as gilsaints88 said, playing from your assets folder in a WebView simply will not work.
I recently had this issue with jPlayer, and my immediate solution was to copy my audio/video content to the sdcard when the app is launched, then play it from there - this still has issues, of course, and in the long term I probably will just not use WebViews for playing audio.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | gilsaints88 |
| Solution 2 | Loki |
