{"action":"created","issue":{"url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/13","labels_url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/13/comments","events_url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/13/events","html_url":"https://github.com/brianwernick/ExoMedia/issues/13","id":105383437,"number":13,"title":"Got an error when invoke the start method in ViewHolder","user":{"login":"daimajia","id":2503423,"avatar_url":"https://avatars.githubusercontent.com/u/2503423?v=3","gravatar_id":"","url":"https://api.github.com/users/daimajia","html_url":"https://github.com/daimajia","followers_url":"https://api.github.com/users/daimajia/followers","following_url":"https://api.github.com/users/daimajia/following{/other_user}","gists_url":"https://api.github.com/users/daimajia/gists{/gist_id}","starred_url":"https://api.github.com/users/daimajia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daimajia/subscriptions","organizations_url":"https://api.github.com/users/daimajia/orgs","repos_url":"https://api.github.com/users/daimajia/repos","events_url":"https://api.github.com/users/daimajia/events{/privacy}","received_events_url":"https://api.github.com/users/daimajia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brianwernick/ExoMedia/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-08T13:44:23Z","updated_at":"2015-10-06T03:50:55Z","closed_at":null,"body":"```\r\njava.lang.IllegalStateException: Handler (android.os.Handler) {ed82dba} sending message to a Handler on a dead thread\r\n            at android.os.MessageQueue.enqueueMessage(MessageQueue.java:325)\r\n            at android.os.Handler.enqueueMessage(Handler.java:631)\r\n            at android.os.Handler.sendMessageAtTime(Handler.java:600)\r\n            at android.os.Handler.sendMessageDelayed(Handler.java:570)\r\n            at android.os.Handler.sendMessage(Handler.java:507)\r\n            at android.os.Message.sendToTarget(Message.java:416)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.prepare(ExoPlayerImplInternal.java:132)\r\n            at com.google.android.exoplayer.ExoPlayerImpl.prepare(ExoPlayerImpl.java:99)\r\n            at com.devbrackets.android.exomedia.exoplayer.EMExoPlayer.onRenderers(EMExoPlayer.java:285)\r\n            at com.devbrackets.android.exomedia.exoplayer.EMExoPlayer$InternalRendererBuilderCallback.onRenderers(EMExoPlayer.java:601)\r\n            at com.devbrackets.android.exomedia.builder.RenderBuilder.buildRenderers(RenderBuilder.java:95)\r\n            at com.devbrackets.android.exomedia.exoplayer.EMExoPlayer.prepare(EMExoPlayer.java:246)\r\n            at com.devbrackets.android.exomedia.exoplayer.EMExoPlayer.replaceRenderBuilder(EMExoPlayer.java:146)\r\n            at com.devbrackets.android.exomedia.EMVideoView.setVideoURI(EMVideoView.java:642)\r\n            at com.devbrackets.android.exomedia.EMVideoView.setVideoURI(EMVideoView.java:624)\r\n```\r\n\r\n```java\r\nmTitle.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                mEmVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\r\n                    @Override\r\n                    public void onPrepared(MediaPlayer mp) {\r\n                        mEmVideoView.start();\r\n                    }\r\n                });\r\n                mEmVideoView.setVideoURI(Uri.parse(\"http://.....................mp4\"));\r\n            }\r\n        });\r\n```"},"comment":{"url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/comments/145735073","html_url":"https://github.com/brianwernick/ExoMedia/issues/13#issuecomment-145735073","issue_url":"https://api.github.com/repos/brianwernick/ExoMedia/issues/13","id":145735073,"user":{"login":"eneim","id":1776230,"avatar_url":"https://avatars.githubusercontent.com/u/1776230?v=3","gravatar_id":"","url":"https://api.github.com/users/eneim","html_url":"https://github.com/eneim","followers_url":"https://api.github.com/users/eneim/followers","following_url":"https://api.github.com/users/eneim/following{/other_user}","gists_url":"https://api.github.com/users/eneim/gists{/gist_id}","starred_url":"https://api.github.com/users/eneim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eneim/subscriptions","organizations_url":"https://api.github.com/users/eneim/orgs","repos_url":"https://api.github.com/users/eneim/repos","events_url":"https://api.github.com/users/eneim/events{/privacy}","received_events_url":"https://api.github.com/users/eneim/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T03:50:55Z","updated_at":"2015-10-06T03:50:55Z","body":"@daimajia I agree. I read his implementation and had a good impression though. Actually I tried to dynamically add the EMVideoView to recyclerview's viewholder but still could not make it works. Could you please share your snippet ? @daimajia . Furthermore, I know about ijkPlayer, but IMO, it's about a codec based player, which provides a lot more functions than ExoPlayer/EMVideoView. So I don't think it fits my requirement for now. Hope @brianwernick could fix this."}}