lihaosky / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Reset time offset in HLS on quality changes #347

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have trouble with playing certain live HLS on the Custom Receiver.
Main playlist contains 3 streams (1300kbps, 850kbps, 400kbps). At any moment 
one of them (1300kbps) contains more fresh segments(+17) then other two 
(850kbps, 400kbps).
Stream is loaded with opt_initialTime set to Infinity.(in order to start 
playback from live position)
Receiver starts playback with 1300kbps stream, that has more segments. When 
quality change occurs, it loads 850kbps stream. Time offset resets. Receiver 
tries to play 850kbps stream playlist from it's beginning.

I think the problem is that receiver can't resume same playback position with 
850kbps stream as it has a lag, so it resets position.

Expected behavior: receiver resumes playback with nearest available position. 
(last available in this case)

Full receiver log, stream files at the moment of error. (last 20 segments for 
each stream included)
https://drive.google.com/folderview?id=0B2F5P7Pyqn_DYVp5cFVjNHJJb2c&usp=sharing#
list

Original issue reported on code.google.com by etherwi...@gmail.com on 29 Jul 2014 at 3:44

GoogleCodeExporter commented 9 years ago
Currently, you need to make sure that there is consistency with sequence 
numbers across different bitrate playlists.

Original comment by anad...@google.com on 29 Jul 2014 at 9:16

GoogleCodeExporter commented 9 years ago
No further comment was received, closing the issue.

Original comment by anad...@google.com on 4 Aug 2014 at 4:46

GoogleCodeExporter commented 9 years ago
As I wrote different bitrate playlists has different sequence length. They are 
inconsistent. But other HLS players don't reset time offset with such 
inconsistent HLS. Hope MPL will behave same.

Original comment by etherwi...@gmail.com on 4 Aug 2014 at 5:11

GoogleCodeExporter commented 9 years ago
Issue 397 has been merged into this issue.

Original comment by and...@google.com on 17 Nov 2014 at 11:02

GoogleCodeExporter commented 9 years ago
WontFix... Any updates? I thought your policy has changed and MPL will "try to 
make our best effort to play stream that are not completely standard compliant" 
as mentioned https://code.google.com/p/google-cast-sdk/issues/detail?id=390#c2

Original comment by etherwi...@gmail.com on 18 Nov 2014 at 2:00