Page 1 of 1

mobilecontrol player on Android

Posted: Wed Nov 05, 2014 5:45 pm
by joel.epsteinBUS31vi
Hi all -

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
works great on iOS.

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

Re: mobilecontrol player on Android

Posted: Wed Nov 05, 2014 8:09 pm
by newtronsols
Would be interesting to know whether http://mobgui.com/doc.php?docId=20 works on LC 7 as this uses the native android player.

Re: mobilecontrol player on Android

Posted: Wed Nov 05, 2014 8:32 pm
by joel.epsteinBUS31vi
I'm seeing the same behavior when I use the MobGUI controls.

Any clues?

Thanks.

Joel

Re: mobilecontrol player on Android

Posted: Thu Nov 06, 2014 1:53 am
by newtronsols
It is getting confusing knowing what does/doesn't work in LC7. :?:

your issue sounds similar to issue in: http://forums.livecode.com/viewtopic.php?f=49&t=21405