I am having an issue when playing a movie in Beta 8. I have a button that when clicked plays a movie. The code is seen below. The bug occurs when I click done on the movie to return to the app. The movie closes and the app is displayed, but the watch movie button is still in the over position and the app appears frozen.
This is only in beta 8. When I publish the same code in Beta 7 everything works perfectly.
local Watch_Video = function (event)
media.playVideo("intro_physio.m4v", true)
end
movie_button = ui.newButton{
default = "small_button.png",
over = "small_button_down.png",
onRelease = Watch_Video,
text = "Watch the video",
textColor = { 255, 255, 255, 255 },
font = "Arial",
size = 16,
offsetX = 6
}
(using iPod touch 3rd gen 8gig)
Tom,
i think it's the ui button class that causes the problem in Beta 8, and not the video player
in the button events folder of sample code, the ui class is missing
Can you try the code with Corona 2.0 and see if it's fixed?
Thanks,
-Tom
This is a known bug that occurred when we moved to IOS 4 builds. The video player is handled differently in IOS 4 and couldn't be completely fixed before we had to release Beta 8.
-Tom