{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/1231","repository_url":"https://api.github.com/repos/google/ExoPlayer","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/1231/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/1231/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/1231/events","html_url":"https://github.com/google/ExoPlayer/issues/1231","id":131277874,"number":1231,"title":"Problems with streaming MP3 and ExtractorSampleSource","user":{"login":"SvenCarstensen","id":4954662,"avatar_url":"https://avatars.githubusercontent.com/u/4954662?v=3","gravatar_id":"","url":"https://api.github.com/users/SvenCarstensen","html_url":"https://github.com/SvenCarstensen","followers_url":"https://api.github.com/users/SvenCarstensen/followers","following_url":"https://api.github.com/users/SvenCarstensen/following{/other_user}","gists_url":"https://api.github.com/users/SvenCarstensen/gists{/gist_id}","starred_url":"https://api.github.com/users/SvenCarstensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvenCarstensen/subscriptions","organizations_url":"https://api.github.com/users/SvenCarstensen/orgs","repos_url":"https://api.github.com/users/SvenCarstensen/repos","events_url":"https://api.github.com/users/SvenCarstensen/events{/privacy}","received_events_url":"https://api.github.com/users/SvenCarstensen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/ExoPlayer/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"AquilesCanta","id":8539544,"avatar_url":"https://avatars.githubusercontent.com/u/8539544?v=3","gravatar_id":"","url":"https://api.github.com/users/AquilesCanta","html_url":"https://github.com/AquilesCanta","followers_url":"https://api.github.com/users/AquilesCanta/followers","following_url":"https://api.github.com/users/AquilesCanta/following{/other_user}","gists_url":"https://api.github.com/users/AquilesCanta/gists{/gist_id}","starred_url":"https://api.github.com/users/AquilesCanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AquilesCanta/subscriptions","organizations_url":"https://api.github.com/users/AquilesCanta/orgs","repos_url":"https://api.github.com/users/AquilesCanta/repos","events_url":"https://api.github.com/users/AquilesCanta/events{/privacy}","received_events_url":"https://api.github.com/users/AquilesCanta/received_events","type":"User","site_admin":false},"assignees":[{"login":"AquilesCanta","id":8539544,"avatar_url":"https://avatars.githubusercontent.com/u/8539544?v=3","gravatar_id":"","url":"https://api.github.com/users/AquilesCanta","html_url":"https://github.com/AquilesCanta","followers_url":"https://api.github.com/users/AquilesCanta/followers","following_url":"https://api.github.com/users/AquilesCanta/following{/other_user}","gists_url":"https://api.github.com/users/AquilesCanta/gists{/gist_id}","starred_url":"https://api.github.com/users/AquilesCanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AquilesCanta/subscriptions","organizations_url":"https://api.github.com/users/AquilesCanta/orgs","repos_url":"https://api.github.com/users/AquilesCanta/repos","events_url":"https://api.github.com/users/AquilesCanta/events{/privacy}","received_events_url":"https://api.github.com/users/AquilesCanta/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-02-04T08:34:06Z","updated_at":"2016-09-12T16:51:11Z","closed_at":"2016-02-04T17:39:10Z","body":"Hi,\r\n\r\ni have some trouble to make ExtractorSampleSource stream MP3 work.\r\n\r\nThe MP3 URL is \"http://stream.klassikradio.de/live/mp3-128/www.klassikradio.de/\"\r\n\r\nThe following Code doesn't work:\r\n\r\nAllocator allocator = new DefaultAllocator(4096);\r\nDataSource dataSource = new DefaultUriDataSource(getApplicationContext(), null, \"Mozilla/5.0\");\r\nExtractorSampleSource sampleSource = new ExtractorSampleSource(uri, dataSource, allocator, 4096);\r\naudioRenderer = new MediaCodecAudioTrackRenderer(sampleSource, MediaCodecSelector.DEFAULT);\r\nplayer.prepare(audioRenderer);\r\nplayer.setPlayWhenReady(true);  \r\n\r\nThis Code works, but shows deprecated warnings:\r\n\r\nFrameworkSampleSource sampleSource = new FrameworkSampleSource(this, uri, null);\r\naudioRenderer = new MediaCodecAudioTrackRenderer(sampleSource, MediaCodecSelector.DEFAULT);\r\nplayer.prepare(audioRenderer);\r\nplayer.setPlayWhenReady(true);\r\n\r\nWhat's wrong with the upper code?\r\n\r\nThanks in advance for your help!\r\n\r\nRegards\r\n\r\nSven"},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/246412117","html_url":"https://github.com/google/ExoPlayer/issues/1231#issuecomment-246412117","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/1231","id":246412117,"user":{"login":"jonas-arkulpa","id":17269256,"avatar_url":"https://avatars.githubusercontent.com/u/17269256?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas-arkulpa","html_url":"https://github.com/jonas-arkulpa","followers_url":"https://api.github.com/users/jonas-arkulpa/followers","following_url":"https://api.github.com/users/jonas-arkulpa/following{/other_user}","gists_url":"https://api.github.com/users/jonas-arkulpa/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas-arkulpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas-arkulpa/subscriptions","organizations_url":"https://api.github.com/users/jonas-arkulpa/orgs","repos_url":"https://api.github.com/users/jonas-arkulpa/repos","events_url":"https://api.github.com/users/jonas-arkulpa/events{/privacy}","received_events_url":"https://api.github.com/users/jonas-arkulpa/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T16:51:11Z","updated_at":"2016-09-12T16:51:11Z","body":"Hey guys,\r\nI am currently trying to implement ExoPlayer instead of the MediaPlayer.\r\nThe use case would be the same: streaming radio (mp3 [or m3u if that is working]).\r\n@SvenCarstensen can you please provide me a sample wich streams mp3 correctly?\r\nI tried to figure it out myself but the link to the ExtractorRenderBuilder is broken.\r\nI am not able to put the settings from the actual example code of the ExtractorRenderBuilder class together with my streaming use case.\r\nThanks in advance."}}
{"actor":{"display_login":"jonas-arkulpa"}}