vinni
vinni

Reputation: 316

pause video in phonegap(android) while going on homescreen

I m using html5 video plugin https://github.com/jaeger25/Html5Video for playing videos on android. I need to pause video while i'm going to home screen or app is going in background. Any Help??

Upvotes: 2

Views: 282

Answers (1)

DaveAlden
DaveAlden

Reputation: 30366

You can attach a handler to the pause event to perform an action before the app is put into the background: http://docs.phonegap.com/en/4.0.0/cordova_events_events.md.html#pause

However, at a brief glance, it doesn't look like the player you are using provides functionality to pause or stop playback in its API.

Upvotes: 1

Related Questions