0

我尝试在 Chromecast 上播放手机中的视频。有些 MP4 视频正在播放,有些没有播放。加载媒体后,我看到以下错误。有人可以帮忙吗?

11-06 14:30:15.572: V/CastSampleActivity(6198): 会话开始后获取频道

11-06 14:30:15.572: V/CastSampleActivity(6198): 创建和附加消息流

11-06 14:30:15.582: V/CastSampleActivity(6198): 在设备上加载选定的媒体

11-06 14:30:15.582: V/CastSampleActivity(6198): cmd 创建,播放器状态 = null

11-06 14:30:15.582: V/CastSampleActivity(6198): 加载所选媒体已完成

11-06 14:30:16.763:E/MediaProtocolMessageStream(6198):错误解析消息:{"type":"RESPONSE","cmd_id":1,"status":{"error":{"domain":" ramp","code":-2},"event_sequence":3931}} org.json.JSONException: 没有状态值

接收器错误:

[104.266s] [cast.receiver.ChannelOverWebSocket] Sending message: ["ramp",{"cmd_id":6,"type":"RESPONSE","status":{"event_sequence":145,"state":0,"content_id":"http://192.168.0.162:1234/storage/emulated/0/Video%20Highlight/Islandia.mp4","current_time":0,"duration":null,"volume":1,"muted":false,"time_progress":false,"title":"title"}}] from ws://localhost:8008/session?2

cast_receiver.js:66 [105.013s] [cast.receiver.RemoteMedia] 收到来自媒体元素的错误事件

cast_receiver.js:66 [105.030s] [cast.receiver.ChannelOverWebSocket] 发送消息:["ramp",{"cmd_id":1,"type":"RESPONSE","status":{"event_sequence":146, "error":{"domain":"ramp","code":-2}}}] 来自 ws://localhost:8008/session?2

cast_receiver.js:66 [105.066s] [cast.receiver.RemoteMedia] getStatus

4

1 回答 1

0

问题不在于 chromecast。某些 MP4 视频未在 chrome 中加载。在我尝试使用 webm 格式后,视频正在加载。

于 2013-11-08T21:51:55.670 回答