Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / media path

Author
Message
darzon
7
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 30th Jul 2017 17:27
Hi, I have a very very simple app in AppGameKit that must run on android tablet and when start play a video (testvideo.mp4)
I use the commands:

LoadVideo(testvideo.mp4)
PlayVideo()

Do
Sync()
Loop

but I want that the media folder in which is the testvideo.mp4 must be in the micro sd card of my tablet

what path I have to use for LoadVideo command ?

thank you
blink0k
AGK Developer
4
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 30th Jul 2017 22:21
if you prefix the filename with "raw:" you can access absolute locations. (requires the very latest version)
darzon
7
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 31st Jul 2017 07:51
thank you blink0k, excuse me blink0k
but I am user novice
I dont' understand how have to use raw suffix , I try to find on online documenentation but I find no example of it
can you make ma an examaple code ? or How I must modifiy this my code ?


LoadVideo(testvideo.mp4)
PlayVideo()

Do
Sync()
Loop

thank you very much
blink0k
AGK Developer
4
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 2nd Aug 2017 12:04 Edited at: 2nd Aug 2017 12:17
this is the announcement for the latest version. see the reference to raw:

i imagine the filename would look like this;

"raw:/floder/folder/filename.mp4"

you need to know the folder hierarchy of your device and where you file is located

Login to post a reply

Server time is: 2018-01-22 12:14:53
Your offset time is: 2018-01-22 12:14:53