Android Video Player
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Android Video Player
Hi all,
I'm back again. I need to have a player on my App that I'm moving from Windows/Mac deployment. I know how to play a movie file "embedded" in the bundle. However, I need the user to be able to select a movie on their mobile device (testing on Samsung Galaxy 10) to play. I cannot see how to do this anywhere (please forgive me if I've missed it )!
I've attached a screen shot of the app. It's pretty simple. Basically, the user can select a movie to play and while it's playing they can press the buttons. These are coded and write to a text file. The user then copies the results text off their device.
Any help greatly appreciated.
Thanks,
Colin
I'm back again. I need to have a player on my App that I'm moving from Windows/Mac deployment. I know how to play a movie file "embedded" in the bundle. However, I need the user to be able to select a movie on their mobile device (testing on Samsung Galaxy 10) to play. I cannot see how to do this anywhere (please forgive me if I've missed it )!
I've attached a screen shot of the app. It's pretty simple. Basically, the user can select a movie to play and while it's playing they can press the buttons. These are coded and write to a text file. The user then copies the results text off their device.
Any help greatly appreciated.
Thanks,
Colin
Re: Android Video Player
Hi Colin,
due to "sanboxing" there is no "answer file..." or something like that on the mobile platform!
And we cannot fake this somehow or "roll our won".
We can e.g. use "mobilepickmedia" and only access all the supported specialfolderpath() on Android.
Best
Klaus
due to "sanboxing" there is no "answer file..." or something like that on the mobile platform!
And we cannot fake this somehow or "roll our won".
We can e.g. use "mobilepickmedia" and only access all the supported specialfolderpath() on Android.
Best
Klaus
Re: Android Video Player
Hi Klaus,
Thanks for responding to one of my queries (yet again ). I have to say that I'm really disappointed that this is not possible
I thought I could even try to see if it was possible to allow the users copy their movie clips to the specialpathfolder documents and resources, and they must use the same filename each time eg "testmovie.mp4". Then in my app can" put specialFolderPath("documents or resources") & "/testmovie.mp4" into VideoFile" and play it? This way they could copy the files one at at time and carry out the testing on the video and extract their txt file. Unfortunately this does not work either way (resources or documents)
Is there anything else you could suggest before I admit defeat? I developed the program years ago for PC/Mac (and it's used all over) and would hate to go back to the academic now with a no....AND we spent a grand on updating Livecode to do it
Cheers,
Colin
Thanks for responding to one of my queries (yet again ). I have to say that I'm really disappointed that this is not possible
I thought I could even try to see if it was possible to allow the users copy their movie clips to the specialpathfolder documents and resources, and they must use the same filename each time eg "testmovie.mp4". Then in my app can" put specialFolderPath("documents or resources") & "/testmovie.mp4" into VideoFile" and play it? This way they could copy the files one at at time and carry out the testing on the video and extract their txt file. Unfortunately this does not work either way (resources or documents)
Is there anything else you could suggest before I admit defeat? I developed the program years ago for PC/Mac (and it's used all over) and would hate to go back to the academic now with a no....AND we spent a grand on updating Livecode to do it
Cheers,
Colin
Re: Android Video Player
Hi Colin,
sorry, I do not own any mobile device, no tablet or cell-phone, yes, that's me, so I don't know much about the "guts" of the Android file-system. However I doubt that your users can copy anything into the documents or resources folder inside of your app.
Hope others will chime in soon...
Best
Klaus
sorry, I do not own any mobile device, no tablet or cell-phone, yes, that's me, so I don't know much about the "guts" of the Android file-system. However I doubt that your users can copy anything into the documents or resources folder inside of your app.
Hope others will chime in soon...
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Android Video Player
I haven't tried this at all, so you're on your own, but I have a theoretical solution. There is a specialFolderPath("external documents") that accesses files outside the sandbox. You could use "the files" to get a list of available files from that location and display them in your app. When the user selects one, rebuild the file name using that specialFolderPath as the root location.
The downside is that files may be inside other folders and you'd basically need to write your own interface to display the file structure. But try it and see what you get. I've meant to explore this for a while but there's never enough time.
The downside is that files may be inside other folders and you'd basically need to write your own interface to display the file structure. But try it and see what you get. I've meant to explore this for a while but there's never enough time.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 135
- Joined: Mon Jul 31, 2006 1:39 am
- Location: New Zealand, Australia, Germany, Japan
- Contact:
Re: Android Video Player
Could you import the video from Dropbox?
If it was on iOS you could prob use mergAV (I think).
If it was on iOS you could prob use mergAV (I think).
Re: Android Video Player
Curious if this was ever resolved. Still no way to select video either via mobilePickPhoto or mobilePickMedia?
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Android Video Player
I just did a quick test. MobilePickMedia works on Android 8 as long as I choose a file in a publicly accessible folder (I chose an mp3 in the system Music folder.) It does not work in Android 12.
This probably needs a bug report.
This probably needs a bug report.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Android Video Player
Thanks Jacque
It works on my end for mp3 too, but it shades out videos such as mp4s (mobilepickphoto) or simply does not include mp4s (mobilepickmedia). My thought was maybe there is a workaround, such as obtaining the file path for a jpeg located on internal storage or external storage and then using the launch command using a modified file path to get to the (e.g. phone/..../videos) video location.
Do you think there is a way to obtain the file path from mobilepickphoto to access the video folder?
It works on my end for mp3 too, but it shades out videos such as mp4s (mobilepickphoto) or simply does not include mp4s (mobilepickmedia). My thought was maybe there is a workaround, such as obtaining the file path for a jpeg located on internal storage or external storage and then using the launch command using a modified file path to get to the (e.g. phone/..../videos) video location.
Do you think there is a way to obtain the file path from mobilepickphoto to access the video folder?
-
- VIP Livecode Opensource Backer
- Posts: 7266
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Android Video Player
Mp4 files are dimmed on my phone too. It does sound like you should submit a bug report, since "media" should return all types of media, not just audio files.
You might be able to construct a file path based on a known file, provided you can work out whether your target video is in the folder.
You might be able to construct a file path based on a known file, provided you can work out whether your target video is in the folder.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com