{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-app-android/issues/608","repository_url":"https://api.github.com/repos/edx/edx-app-android","labels_url":"https://api.github.com/repos/edx/edx-app-android/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-app-android/issues/608/comments","events_url":"https://api.github.com/repos/edx/edx-app-android/issues/608/events","html_url":"https://github.com/edx/edx-app-android/pull/608","id":136467801,"number":608,"title":"Fix courseware video autoplay","user":{"login":"1zaman","id":4244109,"avatar_url":"https://avatars.githubusercontent.com/u/4244109?v=3","gravatar_id":"","url":"https://api.github.com/users/1zaman","html_url":"https://github.com/1zaman","followers_url":"https://api.github.com/users/1zaman/followers","following_url":"https://api.github.com/users/1zaman/following{/other_user}","gists_url":"https://api.github.com/users/1zaman/gists{/gist_id}","starred_url":"https://api.github.com/users/1zaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1zaman/subscriptions","organizations_url":"https://api.github.com/users/1zaman/orgs","repos_url":"https://api.github.com/users/1zaman/repos","events_url":"https://api.github.com/users/1zaman/events{/privacy}","received_events_url":"https://api.github.com/users/1zaman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-25T18:15:53Z","updated_at":"2016-02-25T18:48:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-app-android/pulls/608","html_url":"https://github.com/edx/edx-app-android/pull/608","diff_url":"https://github.com/edx/edx-app-android/pull/608.diff","patch_url":"https://github.com/edx/edx-app-android/pull/608.patch"},"body":"#545 refactored the media player automatic handling based on screen events into `PlayerFragment`. However, that caused a regression in `CourseUnitVideoFragment` causing the autoplay upon swiping the `ViewPager` to stop working. This is now fixed by ensuring that the `PlayerFragment` is initialized once by `CourseUnitVideoFragment` upon first receiving visibility to the user (whether it's opened directly or swiped to), after which the `PlayerFragment` will take care of handling the media player based in it's own lifecycle.\r\n\r\nFixes [MA-2107][].\r\n\r\n[MA-2107]: https://openedx.atlassian.net/browse/MA-2107"},"comment":{"url":"https://api.github.com/repos/edx/edx-app-android/issues/comments/188925493","html_url":"https://github.com/edx/edx-app-android/pull/608#issuecomment-188925493","issue_url":"https://api.github.com/repos/edx/edx-app-android/issues/608","id":188925493,"user":{"login":"BenjiLee","id":7101723,"avatar_url":"https://avatars.githubusercontent.com/u/7101723?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjiLee","html_url":"https://github.com/BenjiLee","followers_url":"https://api.github.com/users/BenjiLee/followers","following_url":"https://api.github.com/users/BenjiLee/following{/other_user}","gists_url":"https://api.github.com/users/BenjiLee/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjiLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjiLee/subscriptions","organizations_url":"https://api.github.com/users/BenjiLee/orgs","repos_url":"https://api.github.com/users/BenjiLee/repos","events_url":"https://api.github.com/users/BenjiLee/events{/privacy}","received_events_url":"https://api.github.com/users/BenjiLee/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T18:48:36Z","updated_at":"2016-02-25T18:48:36Z","body":"Noted. Will update clarification to release docs."}}