Languages

Menu
Sites
Language
Multitasking

Hello,

         i am trying to implement multitasking feature for our app.like  suppose i'm playing a content and then press home button on remote and open for ex. youtube. I want to save that state of the app and when i switch back again to our app we can resume playing that content. I sam that it possible by using 'visibilitychange' event.But i'm not able to figure out how it should be done.

      Kindly please help me regarding this as it is a must have feature in apps this days. 

Thnak you