{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/90","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/90/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/90/events","html_url":"https://github.com/google/ExoPlayer/issues/90","id":46727998,"number":90,"title":"H.264/MP2T over HTTP ","user":{"login":"juanpef","id":9380321,"avatar_url":"https://avatars.githubusercontent.com/u/9380321?v=3","gravatar_id":"","url":"https://api.github.com/users/juanpef","html_url":"https://github.com/juanpef","followers_url":"https://api.github.com/users/juanpef/followers","following_url":"https://api.github.com/users/juanpef/following{/other_user}","gists_url":"https://api.github.com/users/juanpef/gists{/gist_id}","starred_url":"https://api.github.com/users/juanpef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanpef/subscriptions","organizations_url":"https://api.github.com/users/juanpef/orgs","repos_url":"https://api.github.com/users/juanpef/repos","events_url":"https://api.github.com/users/juanpef/events{/privacy}","received_events_url":"https://api.github.com/users/juanpef/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2014-10-24T11:19:25Z","updated_at":"2015-12-18T22:33:41Z","closed_at":null,"body":"I have the next code:\r\n\r\n        Uri uri = Uri.parse(\"http://192.166.103.140:8000/udp/239.192.0.49:2121\");\r\n\t\tSampleSource sampleSource = new FrameworkSampleSource(mContext, uri, /* headers */ null , RENDERER_COUNT);\r\n\t\tMediaCodecVideoTrackRenderer videoRenderer = new MediaCodecVideoTrackRenderer(sampleSource,\r\n     \t\t        MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT, 0, mainHandler,\r\n     \t\t        null, 50); \r\n\t\tMediaCodecAudioTrackRenderer audioRenderer = new MediaCodecAudioTrackRenderer(sampleSource);\r\n    \t\tExoPlayer exoPlayer = ExoPlayer.Factory.newInstance(RENDERER_COUNT);\r\n    \t\texoPlayer.prepare(videoRenderer, audioRenderer);\r\n    \t\texoPlayer.sendMessage(videoRenderer, MediaCodecVideoTrackRenderer.MSG_SET_SURFACE, surface);\r\n    \t\texoPlayer.setPlayWhenReady(true);\r\n\r\nIt works with a closed file like http://html5demos.com/assets/dizzy.mp4 but it does not work with a live streaming. What is the problem???"},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/165912272","html_url":"https://github.com/google/ExoPlayer/issues/90#issuecomment-165912272","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/90","id":165912272,"user":{"login":"ernhelm","id":15867426,"avatar_url":"https://avatars.githubusercontent.com/u/15867426?v=3","gravatar_id":"","url":"https://api.github.com/users/ernhelm","html_url":"https://github.com/ernhelm","followers_url":"https://api.github.com/users/ernhelm/followers","following_url":"https://api.github.com/users/ernhelm/following{/other_user}","gists_url":"https://api.github.com/users/ernhelm/gists{/gist_id}","starred_url":"https://api.github.com/users/ernhelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernhelm/subscriptions","organizations_url":"https://api.github.com/users/ernhelm/orgs","repos_url":"https://api.github.com/users/ernhelm/repos","events_url":"https://api.github.com/users/ernhelm/events{/privacy}","received_events_url":"https://api.github.com/users/ernhelm/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T22:33:41Z","updated_at":"2015-12-18T22:33:41Z","body":"Try buffering for 2 to 3 sec twice before playing and allow the buffer to\njump way ahead of the device that streams\nOn 18 Dec 2015 11:23, \"algrid\" <notifications@github.com> wrote:\n\n> I'm trying to play an MPEG2TS stream (I added an entry with my video\n> stream to the Demo app and it's played as DefaultUriDataSource). It starts\n> playing but very often gets stuck with the same error:\n>\n> 12-18 19:09:07.820 24333-24412/com.google.android.exoplayer.demo E/LoadTask: Unexpected exception loading stream\n>                                                                              java.lang.IllegalArgumentException\n>                                                                                  at com.google.android.exoplayer.util.Assertions.checkArgument(Assertions.java:39)\n>                                                                                  at com.google.android.exoplayer.util.ParsableByteArray.setPosition(ParsableByteArray.java:116)\n>                                                                                  at com.google.android.exoplayer.util.ParsableByteArray.skipBytes(ParsableByteArray.java:127)\n>                                                                                  at com.google.android.exoplayer.extractor.ts.TsExtractor.read(TsExtractor.java:146)\n>                                                                                  at com.google.android.exoplayer.extractor.ExtractorSampleSource$ExtractingLoadable.load(ExtractorSampleSource.java:753)\n>                                                                                  at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:209)\n>                                                                                  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)\n>                                                                                  at java.util.concurrent.FutureTask.run(FutureTask.java:237)\n>                                                                                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\n>                                                                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\n>                                                                                  at java.lang.Thread.run(Thread.java:818)\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/google/ExoPlayer/issues/90#issuecomment-165845841>.\n>\n"}}