当我们尝试使用官方样本的最新媒体库0.7.0时,视频在第一帧停顿。
官方样本位于//github.com/googlecast/CastMediaPlayerStreamingDRM。
我们尝试的链接是http://9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8。
HLS链接有问题吗?
控制台日志:
[24.843s] [cast.receiver.IpcChannel]发送的IPC消息:{" namespace":" urn:x-cast:com.google.cast.media",& #34; senderId":" :""数据":" {\"类型\" :\" MEDIA_STATUS \" \"状态\":[{\" mediaSessionId \":1,\" playbackRate \&# 34;:1> \" playerState \":\" BUFFERING \" \" currentTime的\":0,\" supportedMediaCommands \":15,\"体积\":{\"电平\":1,\"静音\":假}, \"媒体\":{\"内容识别\":\" // 9x9ch1.streamingfast.net/hls-live/livepkgr/definst /> liveevent /活ch1-2.m3u8 \" \"流类型\":\"缓冲\" \"的contentType \":\"视频/ MP4 \" \"持续时间\":空}}],\"的requestId \":23248020 }"} cast_receiver.js:18 [24.667s] [cast.player.api.Player] loadedmetadata media_player.js:24
###媒体元素数据加载mpl.js:61{} mpl.js:103 [25.049s] [cast.receiver.IpcChannel]已发送IPC消息:{"名称空间":" urn:x-cast:com.google.cast.sample.mediaplayer",&# 34; senderId":" :""数据":" {\" video_bitrates \&#34 ;: [0]}"} cast_receiver.js:18
###媒体元素可以播放mpl.js:129[24.882s] [cast.player.api.Player]玩 media_player.js:24
###媒体元素播放mpl.js:139[25.249s] [goog.net.XhrIo]请求完成[获取//9x9ch1.streamingfast.net/hls-live/streams/livepkgr/events/definst/liveevent/live-ch1 -2Num505727.ts 200] media_player.js:24 [25.259s] [cast.player.core.QualityManager] 0:当前= 4195699.16,平均= 4789802.98 media_player.js:24 [25.276s] [cast.player.core.SourceBufferManager] adjustTime:8:7.822999954223633 media_player.js:24 [25.278s] [cast.player.core.SourceBufferManager] 0:追加 media_player.js:24 [25.531s] [goog.net.XhrIo]开放Xhr [GET //9x9ch1.streamingfast.net/hls-live/streams/livepkgr/events/definst/liveevent/live-ch1-2Num505728。 ts -1] media_player.js:24 [25.536s] [goog.net.XhrIo]如果不完整将在24000ms后中止,xhr2 false [GET //9x9ch1.streamingfast.net/hls-live/streams/livepkgr/events/definst/liveevent /live-ch1-2Num505728.ts -1] media_player.js:24 [25.542s] [goog.net.XhrIo]发送请求[GET //9x9ch1.streamingfast.net/hls-live/streams/livepkgr/events/definst/liveevent/live-ch1-2Num505728。 ts -1] media_player.js:24 [25.560s] [cast.player.core.SourceBufferManager] 0:0 - 15.89799976348877 media_player.js:24 [25.567s] [cast.player.core.SourceBufferManager] 0:updateend media_player.js:24 [25.894s] [cast.receiver.MediaManager]缓冲状态改变了,isPlayerBuffering:false旧时间:0当前时间:0.349 cast_receiver.js:18 [25.916s] [cast.receiver.MediaManager]发送广播状态消息 cast_receiver.js:18 [25.929s] [cast.receiver.IpcChannel]发送的IPC消息:{" namespace":" urn:x-cast:com.google.cast.media"," senderId":" :""数据":" {\"类型\":\& #34; MEDIA_STATUS \" \"状态\":[{\" mediaSessionId \":1,\" playbackRate \&#34 ;: 1 GT; \" playerState \":\" PLAYING \" \" currentTime的\":0.349,\" supportedMediaCommands \&# 34;:15,\"体积\":{\"电平\":1,\"静音\":假}}],\ "的requestId \":0}"} cast_receiver.js:18 [26.543s] [goog.net.XhrIo]请求完成[GET //9x9ch1.streamingfast.net/hls-live/streams/livepkgr/events/definst/liveevent/live-ch1-2Num505728。 ts 200] media_player.js:24 [26.548s] [cast.player.core.QualityManager] 0:当前= 6509453.83,平均= 5993558.58 media_player.js:24 [26.554s] [cast.player.core.SourceBufferManager] adjustTime:16:15.89799976348877 media_player.js:24 [26.555s] [cast.player.core.SourceBufferManager] 0:追加 media_player.js:24 [26.668s] [cast.player.core.SourceBufferManager] 0:0 - 23.839000701904297 media_player.js:24 [26.673s] [cast.player.core.SourceBufferManager] 0:updateend media_player.js:24 [26.908s] [cast.receiver.MediaManager]缓冲状态已更改,isPlayerBuffering:true旧时间:0.349当前时间:0.349 cast_receiver.js:18 [26.909s] [cast.receiver.MediaManager]发送广播状态消息 cast_receiver.js:18 [26.912s] [cast.receiver.IpcChannel]发送的IPC消息:{" namespace":" urn:x-cast:com.google.cast.media"," senderId":" :""数据":" {\"类型\":\& #34; MEDIA_STATUS \" \"状态\":[{\" mediaSessionId \":1,\" playbackRate \&#34 ;: 1 GT; \" playerState \":\" BUFFERING \" \" currentTime的\":0.349,\" supportedMediaCommands \&# 34;:15,\"体积\":{\"电平\":1,\"静音\":假}}],\ "的requestId \":0}"} cast_receiver.js:18
### MEDIA ELEMENT STALLED mpl.js:148[30.855s] [cast.player.hls.Playlist] update://9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 media_player.js:24 [30.858s] [goog.net.XhrIo]开放Xhr [GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 -1] media_player.js:24 [30.861s] [goog.net.XhrIo]如果不完整则会在30000ms后中止,xhr2 false [GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1 -2.m3u8 -1] media_player.js:24 [30.863s] [goog.net.XhrIo]发送请求[GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 -1] media_player.js:24 [30.962s] [goog.net.XhrIo]请求完成[获取//9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 200] media_player.js:24 [30.982s] [cast.player.hls.Playlist]更新于:8000 media_player.js:24 [38.995s] [cast.player.hls.Playlist]更新://9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 media_player.js:24 [39.002s] [goog.net.XhrIo]开放Xhr [GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 -1] media_player.js:24 [39.009s] [goog.net.XhrIo]如果不完整则会在30000ms后中止,xhr2 false [GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1 -2.m3u8 -1] media_player.js:24 [39.012s] [goog.net.XhrIo]发送请求[GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 -1] media_player.js:24 [39.083s] [goog.net.XhrIo]请求完成[获取//9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 200] media_player.js:24 [39.120s] [cast.player.hls.Playlist]更新于:8000 media_player.js:24 [47.135s] [cast.player.hls.Playlist]更新://9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 media_player.js:24 [47.140s] [goog.net.XhrIo]开放Xhr [GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 -1] media_player.js:24 [47.145s] [goog.net.XhrIo]如果不完整将在30000ms后中止,xhr2 false [GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1 -2.m3u8 -1] media_player.js:24 [47.150s] [goog.net.XhrIo]发送请求[GET //9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 -1] media_player.js:24 [47.256s] [goog.net.XhrIo]请求完成[获取//9x9ch1.streamingfast.net/hls-live/livepkgr/definst/liveevent/live-ch1-2.m3u8 200] media_player.js:24 [47.290s] [cast.player.hls.Playlist]更新于:8000 media_player.js:24 [47.295s] [cast.player.hls.PlaylistIterator]更新:505728在新播放列表中找不到
谢谢!