I have a LiveCode stack that plays a video just fine along with doing some other things. I extracted the code that plays the video exactly and put it into a new stack in order to do some testing on playing videos. All I get in the test stack is a black rectangle where the player should be. No sound, no change when cliched / tapped / swiped. Nothing happens if I leave the app via the home button then return as in a previous post mobileControlSet. I only have one player object. I'm using the same video as the one that works and have changed the Standalone settings to pick it up (however even if the video isn't getting picked up would I not see the player controls?)
Here is the code:
Code: Select all
local sPlayerID
on opencard
// Check the control doesn't already exist. If so delete and recreate it
if sPlayerID is among the lines of mobileControls() then
mobileControlDelete sPlayerID
end if
mobileControlCreate "player"
put the result into sPlayerID
mobileControlSet sPlayerID, "rect", "25,92,669,472" --left,top,right,bottom
mobileControlSet sPlayerID, "visible", true
mobileControlSet sPlayerID, "showController", true
mobileControlSet sPlayerID, "filename", "Resources/WP6v1.webm"
mobileControlSet sPlayerID, "currentTime", 0
mobileControlDo sPlayerID, "play"
end opencard
on closeCard
mobileControlDelete sPlayerID
end closeCard
Any help appreciated - thanks!