I build a player from Android Studio and use Media to play a video. When I use the player the video plays fine. When I export the game (assets only) into the same Android Studio project I get this error and a warning popup saying “Can’t play this video”:
10-07 19:38:39.998 4519-4519/com.totebo.fastfoodrampage W/MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: video/AG_Amend_05_03_2016.mov
10-07 19:38:40.027 4519-4519/com.totebo.fastfoodrampage W/VideoView: Unable to open content: video/AG_Amend_05_03_2016.mov |
When I play the video in the player this pops up, but the video plays:
10-07 19:54:01.597 26416-26416/com.totebo.fastfoodrampage W/MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: /storage/emulated/0/gideros/Fast Food Rampage/resource/video/AG_Amend_05_03_2016.mov |
Any ideas why this would happen?
Comments
https://developer.android.com/guide/appendix/media-formats.html
I think it was something related with apk packaging, you can't play video from resources, but need to copy it to documents folder and play from there
Likes: totebo
http://docs.giderosmobile.com/reference/plugin/sqlite3#sqlite3
cause it has same problem on Android
Did the previous function work to copy to |D|?
now back to the topic, I realized this may be a better topic for the humble request i posted in another topic, so let me repeat:
i realized that the media plugin is almost good for saving/loading file with dialog on desktop.
-for loading mediamanager:getPicture() would be perfect, except that it forces you given file extensions. can you make a mediamanager:getFile() version? i guess it should be really simple.
-for saving mediamanager:postPicture() is perfect, there you can already use it to save any file extension (or even change the extension), which is good. the only problem is that it opens the folder where the file to save is located, which is the working directory of fragmenter in my case, not so nice. there should be an option to set the initial directory (as i would set it to the root or if this is not the first time one saves a file then the previous folder he has chosen) - this applies to the previous getPicture/getFile too of course.
probably such a saving method should be called mediamanager:postFile() or something to make it clear that it's not just for pictures.
-ideally i'd like to load multiple files with such native dialog, in case that's easy to add.
i hope i do not ask for much, thanks
Likes: bgcis
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game