{"action":"created","issue":{"url":"https://api.github.com/repos/react-native-community/react-native-video/issues/222","repository_url":"https://api.github.com/repos/react-native-community/react-native-video","labels_url":"https://api.github.com/repos/react-native-community/react-native-video/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/react-native-community/react-native-video/issues/222/comments","events_url":"https://api.github.com/repos/react-native-community/react-native-video/issues/222/events","html_url":"https://github.com/react-native-community/react-native-video/issues/222","id":155998252,"number":222,"title":"Android ui sometime hang","user":{"login":"InnerPeace080","id":3762408,"avatar_url":"https://avatars.githubusercontent.com/u/3762408?v=3","gravatar_id":"","url":"https://api.github.com/users/InnerPeace080","html_url":"https://github.com/InnerPeace080","followers_url":"https://api.github.com/users/InnerPeace080/followers","following_url":"https://api.github.com/users/InnerPeace080/following{/other_user}","gists_url":"https://api.github.com/users/InnerPeace080/gists{/gist_id}","starred_url":"https://api.github.com/users/InnerPeace080/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InnerPeace080/subscriptions","organizations_url":"https://api.github.com/users/InnerPeace080/orgs","repos_url":"https://api.github.com/users/InnerPeace080/repos","events_url":"https://api.github.com/users/InnerPeace080/events{/privacy}","received_events_url":"https://api.github.com/users/InnerPeace080/received_events","type":"User","site_admin":false},"labels":[{"id":432971027,"url":"https://api.github.com/repos/react-native-community/react-native-video/labels/Android","name":"Android","color":"d4c5f9","default":false},{"id":194019242,"url":"https://api.github.com/repos/react-native-community/react-native-video/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-20T16:10:14Z","updated_at":"2016-11-06T09:01:09Z","closed_at":"2016-09-06T03:20:53Z","body":"Some time react native video loading data error or slow , it block ui and app seem hang . \n\nHow can i run video on other thread (not async task) . I don't want my app hang :( \n"},"comment":{"url":"https://api.github.com/repos/react-native-community/react-native-video/issues/comments/258666136","html_url":"https://github.com/react-native-community/react-native-video/issues/222#issuecomment-258666136","issue_url":"https://api.github.com/repos/react-native-community/react-native-video/issues/222","id":258666136,"user":{"login":"rayshih","id":613044,"avatar_url":"https://avatars.githubusercontent.com/u/613044?v=3","gravatar_id":"","url":"https://api.github.com/users/rayshih","html_url":"https://github.com/rayshih","followers_url":"https://api.github.com/users/rayshih/followers","following_url":"https://api.github.com/users/rayshih/following{/other_user}","gists_url":"https://api.github.com/users/rayshih/gists{/gist_id}","starred_url":"https://api.github.com/users/rayshih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayshih/subscriptions","organizations_url":"https://api.github.com/users/rayshih/orgs","repos_url":"https://api.github.com/users/rayshih/repos","events_url":"https://api.github.com/users/rayshih/events{/privacy}","received_events_url":"https://api.github.com/users/rayshih/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T09:01:09Z","updated_at":"2016-11-06T09:01:09Z","body":"We are encountering \"hang\" issue right now.\r\nAnd I have traced down this happened while call `mMediaPlayer.reset()`\r\nWhich will spend almost 1 second on UI Thread on my device.\r\n\r\nHowever, recreating a completely new media player won't cause this problem. So my current solution is removing all code that will call `reset`. like remove this:\r\n\r\nhttps://github.com/react-native-community/react-native-video/blob/master/android/src/main/java/com/brentvatne/react/ReactVideoView.java#L193\r\n\r\nAlso, I removed the `onAttachWindow` callback, and I don't observe any difference.\r\n\r\nSince I do this on my forked repo, and which already diverged from this repo, I'll create PR later, if nobody haven't. (I'm not sure when I'll have time)"}}
{"actor":{"display_login":"rayshih"}}