{"action":"opened","issue":{"url":"https://api.github.com/repos/readium/SDKLauncher-Android/issues/65","labels_url":"https://api.github.com/repos/readium/SDKLauncher-Android/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/readium/SDKLauncher-Android/issues/65/comments","events_url":"https://api.github.com/repos/readium/SDKLauncher-Android/issues/65/events","html_url":"https://github.com/readium/SDKLauncher-Android/issues/65","id":74450636,"number":65,"title":"If media overlay is playing, audio doesn't stop when app is backgrounded or device is turned off","user":{"login":"msintov","id":1221526,"avatar_url":"https://avatars.githubusercontent.com/u/1221526?v=3","gravatar_id":"","url":"https://api.github.com/users/msintov","html_url":"https://github.com/msintov","followers_url":"https://api.github.com/users/msintov/followers","following_url":"https://api.github.com/users/msintov/following{/other_user}","gists_url":"https://api.github.com/users/msintov/gists{/gist_id}","starred_url":"https://api.github.com/users/msintov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msintov/subscriptions","organizations_url":"https://api.github.com/users/msintov/orgs","repos_url":"https://api.github.com/users/msintov/repos","events_url":"https://api.github.com/users/msintov/events{/privacy}","received_events_url":"https://api.github.com/users/msintov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-08T18:22:55Z","updated_at":"2015-05-08T18:22:55Z","closed_at":null,"body":"There is a bug where media overlay audio doesn't stop playing when the app is backgrounded or the device is turned off.\r\n\r\nRepro steps:\r\n1. Launch SDKLaunder-Android\r\n2. Open a book with a media overlay\r\n3. Play the media overlay\r\n4. Background the app or touch the power button to turn off the display\r\n\r\nActual results: audio continues playing\r\nExpected results: audio stops\r\n\r\nOne potential fix is to call ReadiumSDK.reader.toggleMediaOverlay() if the media overlay is playing in WebViewActivity.onPause(). Seems to work."}}