Code: Select all
on openCard
if "mobilecontrol" is among the lines of mobileControls() then
controlDelete
end if
mobileControlCreate "player", "videoControl"
mobileControlSet "videoControl", "filename", specialFolderPath("resources") & "/chips.mp4"
mobileControlSet "videoControl", "rect", "10,10,300,350"
mobileControlSet "videoControl", "showController", true
mobileControlSet "videoControl", "visible", true
mobileControlDo "videoControl", "play"
end openCard
on controlDelete
mobileControlDelete "videoControl"
end controlDelete
on closeCard
controlDelete
end closeCard
end openCard
I am using LiveCode Community 8.1.3 with Mac OS 10.10.5 (Yosemite). I got the same results with LiveCode Indy 8.1.3 and several earlier versions of Livecode, including 7.1.2, and with MacOS 10.12 Sierra, and with Xcode 6.3.2. and 7.2.1. Frankly, I don't think it's a Mac OS or Xcode problem.