mobilecontrol player on Android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

mobilecontrol player on Android

Post by joel.epsteinBUS31vi » Wed Nov 05, 2014 5:45 pm

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

newtronsols
Posts: 192
Joined: Tue Mar 11, 2014 12:57 pm

Re: mobilecontrol player on Android

Post by newtronsols » Wed Nov 05, 2014 8:09 pm

Would be interesting to know whether http://mobgui.com/doc.php?docId=20 works on LC 7 as this uses the native android player.

joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

Re: mobilecontrol player on Android

Post by joel.epsteinBUS31vi » Wed Nov 05, 2014 8:32 pm

I'm seeing the same behavior when I use the MobGUI controls.

Any clues?

Thanks.

Joel

newtronsols
Posts: 192
Joined: Tue Mar 11, 2014 12:57 pm

Re: mobilecontrol player on Android

Post by newtronsols » Thu Nov 06, 2014 1:53 am

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

Post Reply

Return to “Android Deployment”