problem with media.playVideo()

Hi all,

Let’s see if anyone has encountered the same problem:

I’m developing an application that launches a video from a remote service by media.playVideo (), so far no problem. But I need that when the user leaves the suspended device, ie when you press the power button and leave ‘Suspend’ the application, it can stop the video being played.

problems:

  • When the video is launched Android, the application automatically is suspended and no control over media.playVideo ()

  • Being suspended the application, the video is played in the background and no way to stop it.

Any ideas for stop the video ???

A greeting. [import]uid: 181654 topic_id: 33140 reply_id: 333140[/import]

Hello,
Did you add in a device “status” listener to monitor when the device goes to “suspend” state? If not, that would be the first step… then we’d have to see if you can effectively stop the video in that function. Some actions are simply not possible in that step. For example, the listener is telling Corona “this device is going into suspend state now” and thus you, as the developer, can’t go and perform another game/app cycle or draw cycle, because effectively, the app is already “suspended” in that cycle.

Brent
[import]uid: 9747 topic_id: 33140 reply_id: 131610[/import]

Hello,
Did you add in a device “status” listener to monitor when the device goes to “suspend” state? If not, that would be the first step… then we’d have to see if you can effectively stop the video in that function. Some actions are simply not possible in that step. For example, the listener is telling Corona “this device is going into suspend state now” and thus you, as the developer, can’t go and perform another game/app cycle or draw cycle, because effectively, the app is already “suspended” in that cycle.

Brent
[import]uid: 9747 topic_id: 33140 reply_id: 131610[/import]