Can't get Android Mediaplayer to work
Posted: Mon Feb 10, 2014 6:30 pm
Hello,
I have LiveCode Community 6.5.2 and try to run a mp4 video in the Android Emulator over an URL from a website.
I have created an empty Stack window and inserted following code which should play the video:
on openCard
mobileControlCreate "player", "movie"
put the result into sPlayerID
mobileControlSet sPlayerID, "showController", true
mobileControlSet sPlayerID, "h t t p : / / clips . vorwaerts-gmbh . de / big_buck_bunny . mp4", tMoviePath
mobileControlDo sPlayerID, "play"
end openCard
I have activated Internet in the Android Standalone Application Settings.
When I deploy to the emulator which runs Android 4.2.2 then I only get a white screen and the controller is also not showing up.
Does anybody know where the problem could be located?
Thanks,
Chris
I have LiveCode Community 6.5.2 and try to run a mp4 video in the Android Emulator over an URL from a website.
I have created an empty Stack window and inserted following code which should play the video:
on openCard
mobileControlCreate "player", "movie"
put the result into sPlayerID
mobileControlSet sPlayerID, "showController", true
mobileControlSet sPlayerID, "h t t p : / / clips . vorwaerts-gmbh . de / big_buck_bunny . mp4", tMoviePath
mobileControlDo sPlayerID, "play"
end openCard
I have activated Internet in the Android Standalone Application Settings.
When I deploy to the emulator which runs Android 4.2.2 then I only get a white screen and the controller is also not showing up.
Does anybody know where the problem could be located?
Thanks,
Chris