Having a problem with showing a mobilecontrol on Android using LiveCode 7.0.
This code:
Code: Select all
on preOpenCard
put "Little Fugue.mp3" into tMovie
if the platform contains "iPhone" or the platform contains "android" then
if "mobilecontrol" is among the lines of mobileControls() then
controlDelete
end if
mobileControlCreate "player", "videoControl"
mobileControlSet "videoControl", "filename", specialFolderPath("engine") & "/"& tMovie
mobileControlSet "videoControl","preserveAspect",true
mobileControlSet "videoControl","showController",false
mobileControlSet "videoControl","visible",true
mobileControlSet "videoControl","rect","0,100,300,200"
mobileControlSet "videoControl","backgroundcolor","50,50,200"
mobileControlDo "videoControl", "play"
end if
end preOpenCard
On Android devices, it shows the bounding rectangle, but it is completely black. The file does play, but because I cant see the controller, I can't start and stop it.
Any clues what I might do differently?
Thanks so much.
Joel