{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/4399","repository_url":"https://api.github.com/repos/google/ExoPlayer","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/4399/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/4399/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/4399/events","html_url":"https://github.com/google/ExoPlayer/issues/4399","id":334357321,"node_id":"MDU6SXNzdWUzMzQzNTczMjE=","number":4399,"title":"M3u8 Not Playing after first ts segment.","user":{"login":"Akash1034","id":12915640,"node_id":"MDQ6VXNlcjEyOTE1NjQw","avatar_url":"https://avatars3.githubusercontent.com/u/12915640?v=4","gravatar_id":"","url":"https://api.github.com/users/Akash1034","html_url":"https://github.com/Akash1034","followers_url":"https://api.github.com/users/Akash1034/followers","following_url":"https://api.github.com/users/Akash1034/following{/other_user}","gists_url":"https://api.github.com/users/Akash1034/gists{/gist_id}","starred_url":"https://api.github.com/users/Akash1034/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akash1034/subscriptions","organizations_url":"https://api.github.com/users/Akash1034/orgs","repos_url":"https://api.github.com/users/Akash1034/repos","events_url":"https://api.github.com/users/Akash1034/events{/privacy}","received_events_url":"https://api.github.com/users/Akash1034/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-21T06:37:13Z","updated_at":"2018-06-21T08:20:14Z","closed_at":null,"author_association":"NONE","body":"**### Issue Description**:\r\nI have been trying to play a m3u8 file(audio) with segments having byte ranges. The file works smoothly till end if no action is performed(pause/play). But when pausing and playing the file, it doesn't play or even when you seek the audio, it doesn't resumes. This is happening only in case of audio which is m3u8 format.\r\n\r\n### **Reproduction steps**:\r\nThe issue can be reproduced by playing the file for more than 10 secs(each segment is 10 secs), and then pause/play the file. The issue can also be reproduced by seeking the file as well.\r\n\r\nWhen debugged, found that when the first segment is playing(around first 10 secs), any action(pause/play) can be done it works fine, but when the second segment is loaded after that no actions can be done as the exoplayer stuck and never recovers. The Exoplayer stays in STATE_BUFFERING state and doesn't recovers to STATE_READY state after first segment is over and any action is performed after it(After first segment).\r\n\r\nPlease find the pseudo code through which we are trying to play the audio:\r\n\r\nTo initiate the player:\r\nprivate void initPlayer() {\r\n\r\n    trackSelector = new DefaultTrackSelector();\r\n    renders=renderer();\r\n    exoPlayer = ExoPlayerFactory.newInstance(renders, trackSelector, new CustomLoadControl(new DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE), 50000,50000,5000,10000,10000, true));\r\n    exoPlayer.addListener(mlistener);\r\n}\r\nTo prepare the player:\r\n\r\npublic void prepare() {\r\nexoPlayer.prepare(buildMediaSource(Uri.parse(mUrl),\"\"),true,true);\r\n}\r\n\r\nTo pause the audio:\r\npublic void pause(long posMs) {\r\nexoPlayer.setPlayWhenReady(false);\r\nLogger.d(\"Constant\", posMs);\r\n}\r\n\r\nTo play the audio:\r\npublic void play(String url,long posMs,int peerId) {\r\nmUrl = url;\r\ncommand= SpConstants.ACTION_PLAY;\r\n_peerId=peerId;\r\nexoPlayer.setPlayWhenReady(false);\r\nprepare();\r\nexoPlayer.seekTo(posMs);\r\n}\r\n\r\n### **Version of exoplayer used**:\r\nTried with 2.2.0, 2.6, 2.8.1."},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/399017549","html_url":"https://github.com/google/ExoPlayer/issues/4399#issuecomment-399017549","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/4399","id":399017549,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTAxNzU0OQ==","user":{"login":"tonihei","id":26897506,"node_id":"MDQ6VXNlcjI2ODk3NTA2","avatar_url":"https://avatars1.githubusercontent.com/u/26897506?v=4","gravatar_id":"","url":"https://api.github.com/users/tonihei","html_url":"https://github.com/tonihei","followers_url":"https://api.github.com/users/tonihei/followers","following_url":"https://api.github.com/users/tonihei/following{/other_user}","gists_url":"https://api.github.com/users/tonihei/gists{/gist_id}","starred_url":"https://api.github.com/users/tonihei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonihei/subscriptions","organizations_url":"https://api.github.com/users/tonihei/orgs","repos_url":"https://api.github.com/users/tonihei/repos","events_url":"https://api.github.com/users/tonihei/events{/privacy}","received_events_url":"https://api.github.com/users/tonihei/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T08:20:14Z","updated_at":"2018-06-21T08:20:14Z","author_association":"CONTRIBUTOR","body":"Most likely a duplicate of #4394. Could you try to patch the referenced fix there to see if it solves your issue?"}}
{"actor":{"display_login":"tonihei"}}