Hello,
I hope this is the right place to discuss this, if not point me elsewhere, but we had to buy a FULL version of the SDK just so we could submit to Amazon, which is the only app market we are supplying right now, but unfortunately we can’t accomplish that. Not very happy with our purchase. Any response would be appreciated.
We received a rejection notice from Amazon for an app, as shown below:
_Bug Description: Call Interrupt fail
Steps to Reproduce:
1.Launch the app.
2.Select any video.
3.A video is played,make an incoming call.
4.End the call,a blank screen is displayed and the video is not resumed.
OS/Device(s)/Form Factor: 2.3.6/Samsung Galaxy S Advance/Phone+Tablet_
In response I’ve implemented the applicationSuspend and applicationResume (from every scope possible), as well as listening for the video complete event so that I could just simply go back to the select screen (using storyboard), but no events seem to fire.
Details:
The app loads a scene with a handful of buttons that point to local videos, when tapped are called like so:
In videos.lua
[lua] local onComplete = function(event)
print( “video session ended” )
storyboard.gotoScene( “splash” )
end
media.playVideo( “vid_00” … btn.id … “.mp4”, true, onComplete )[/lua]
This is in my main.lua
[lua]local function onSystemEvent( event )
if (event.type == “applicationSuspend”) then
storyboard.gotoScene( “splash” )
elseif (event.type == “applicationResume”) then
storyboard.gotoScene( “splash” )
end
end
Runtime:addEventListener( “system”, onSystemEvent )[/lua]
The video starts playing and if it reaches the end of the clip, it does indeed return to the “splash” screen. But if I tap the “home” button on my phone, in what I would presume to be an “applicationSuspend” system event, the phone goes to the home screen, but when resuming the app, now assuming an “applicationResume” event, the video just sits on screen, blank and stopped.
I did see this on the media.playVideo doc:
…on Android devices the application will be suspended until the video playback is complete.
Perhaps that’s the sticking point. Any advice on how to handle this situation?
Corona Build: 2013.1003
[import]uid: 202223 topic_id: 35049 reply_id: 335049[/import]