gapu / google-cast-sdk

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

Playback not starting after switch to mediaplayer.js library 0.6.0 #250

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Put sample stream to http server and try to play it using mediaplayer.js ver. 
0.6.0 and 0.5.0. With 0.6.0 playback cancelled with error after first segment 
received.

Expected: No serious side effects between releases, especially when in release 
notes there is nothing related to HLS.

P.S. In attach simple 3 sec video sample. By analyzing log with mediaplaye.js 
ver 0.6.0 this sample not playable. Fetching of segment cancelled after first 
segment received (and assume parsed) by Chromecast. But if I simply replace 
mediaplayer.js un receiver application to 0.5.0 - works fine. Same thing 
happens with longer (~ 1 hour) video streams.

Nginx 1.4.5 used as static http server for testing purpose.

Original issue reported on code.google.com by ibmpc.ma...@gmail.com on 1 May 2014 at 12:21

Attachments:

GoogleCodeExporter commented 9 years ago
An internal issue was opened to investigate

Original comment by anad...@google.com on 1 May 2014 at 2:44

GoogleCodeExporter commented 9 years ago
And please there is any chance to get more detail information thru Chrome 
Remote Debugger or any callback with details when this kind of problem happens? 
For example we wanna know why Chromecast rejecting our stream instead of spend 
a lot of time on it. It's possible to get any useful detail information thru 
onError callback?

Original comment by ibmpc.ma...@gmail.com on 2 May 2014 at 10:03

GoogleCodeExporter commented 9 years ago
We were not able to reproduce this; it worked fine when we ran that against 0.6 
library; here is the log:

 [  0.085s] [cast.player.api.Player] Version: 0.6.0.5
 [  0.120s] [cast.player.api.Player] load
 [  0.240s] [goog.net.XhrIo] Opening Xhr [GET http://[REDACTED]/repro250/playlist.m3u8 -1]
 [  0.271s] [goog.net.XhrIo] Will abort after 30000ms if incomplete, xhr2 false [GET http://[REDACTED]/repro250/playlist.m3u8 -1]
 [  0.275s] [goog.net.XhrIo] Sending request [GET http://[REDACTED]/repro250/playlist.m3u8 -1]
 [  0.292s] [goog.net.XhrIo] Request complete [GET http://[REDACTED]/repro250/playlist.m3u8 200]
 [  0.352s] [cast.player.core.QualityManager] 0: from undefined to 0
 [  0.354s] [cast.player.hls.Playlist] update: http://[REDACTED]/repro250/playlist.m3u8
 [  0.358s] [goog.net.XhrIo] Opening Xhr [GET http://[REDACTED]/repro250/playlist.m3u8 -1]
 [  0.362s] [goog.net.XhrIo] Will abort after 30000ms if incomplete, xhr2 false [GET http://[REDACTED]/repro250/playlist.m3u8 -1]
 [  0.365s] [goog.net.XhrIo] Sending request [GET http://[REDACTED]/repro250/playlist.m3u8 -1]
 [  0.379s] [goog.net.XhrIo] Request complete [GET http://[REDACTED]/repro250/playlist.m3u8 200]
 [  0.394s] [cast.player.core.SourceBufferManager] 0: abort
 [  0.404s] [cast.player.core.SegmentManager] 0: seek 0
 [  0.411s] [goog.net.XhrIo] Opening Xhr [GET http://[REDACTED]/repro250/segment_3_1.ts -1]
 [  0.415s] [goog.net.XhrIo] Will abort after 10000ms if incomplete, xhr2 false [GET http://[REDACTED]/repro250/segment_3_1.ts -1]
 [  0.417s] [goog.net.XhrIo] Sending request [GET http://[REDACTED]/repro250/segment_3_1.ts -1]
 [  0.448s] [goog.net.XhrIo] Request complete [GET http://[REDACTED]/repro250/segment_3_1.ts 200]
 [  0.487s] [cast.player.hls.Protocol] start: 1.4
 [  0.489s] [cast.player.hls.Protocol] processed: 0
 [  0.490s] [cast.player.hls.Protocol] offset: -1.4
 [  0.501s] [cast.player.core.SourceBufferManager] 0: abort
 [  0.503s] [cast.player.core.SourceBufferManager] 0: append
 [  0.517s] [goog.net.XhrIo] Opening Xhr [GET http://[REDACTED]/repro250/segment_3_2.ts -1]
 [  0.520s] [goog.net.XhrIo] Will abort after 10000ms if incomplete, xhr2 false [GET http://[REDACTED]/repro250/segment_3_2.ts -1]
 [  0.522s] [goog.net.XhrIo] Sending request [GET http://[REDACTED]/repro250/segment_3_2.ts -1]
 [  0.532s] [cast.player.core.SourceBufferManager] 0: updateend
 [  0.545s] [goog.net.XhrIo] Request complete [GET http://[REDACTED]/repro250/segment_3_2.ts 200]
 [  0.551s] [cast.player.core.SourceBufferManager] 0: append
 [  0.557s] [goog.net.XhrIo] Opening Xhr [GET http://[REDACTED]/repro250/segment_3_3.ts -1]
 [  0.560s] [goog.net.XhrIo] Will abort after 10000ms if incomplete, xhr2 false [GET http://[REDACTED]/repro250/segment_3_3.ts -1]
 [  0.561s] [goog.net.XhrIo] Sending request [GET http://[REDACTED]/repro250/segment_3_3.ts -1]
 [  0.567s] [cast.player.core.SourceBufferManager] 0: updateend
 [  0.634s] [goog.net.XhrIo] Request complete [GET http://[REDACTED]/repro250/segment_3_3.ts 200]
 [  0.641s] [cast.player.core.SourceBufferManager] 0: append
 [  0.652s] [cast.player.core.QualityManager] 0: bitrate 77677869.05386434
 [  0.715s] [cast.player.core.SourceBufferManager] 0: 0.021331999450922012 - 3.203200101852417
 [  0.720s] [cast.player.core.SourceBufferManager] 0: updateend
 [  0.816s] [cast.player.api.Player] loadedmetadata
 [  1.180s] [cast.player.api.Player] auto resume 0
 [  1.185s] [cast.player.api.Player] endOfStream 0
 [  1.217s] [cast.player.api.Player] play

Original comment by anad...@google.com on 2 May 2014 at 4:21

GoogleCodeExporter commented 9 years ago
Strange... (((( But anyway thanks. There is any ability to get detailed logs 
thru Chrome Remote Debugger ?

Original comment by ibmpc.ma...@gmail.com on 3 May 2014 at 7:05

GoogleCodeExporter commented 9 years ago
Have you already turned on logging on your receiver 
(cast.receiver.logger.setLevelValue(cast.receiver.LoggerLevel.DEBUG)?

Original comment by anad...@google.com on 3 May 2014 at 4:08

GoogleCodeExporter commented 9 years ago
Thanks my previous log level was ERROR, I change it to DEBUG. But still logs 
not informative enough. I cannot understand why Chromecast just cancelled 
playback after first segment was downloaded.

Original comment by ibmpc.ma...@gmail.com on 5 May 2014 at 12:33

Attachments: