1

嗯,所以我认为不将 NAMESPACE 作为数组传递,[ NAMESPACE]也是我的问题(请参阅此堆栈溢出),但即使在确保Receiver构造函数采用了 NAMESPACE 数组之后,它似乎也不起作用。@dowski 很想得到你的帮助。这是我的 javascript 控制台输出:

 [  0.102s] [cast.receiver.ChannelHandler] New channel factory added: YouTube to heartbeatChannelHandler
 cast_receiver.js:55

 [  0.108s] [cast.receiver.ChannelHandler] New channel factory added: com.google.chromecast.umano:YouTube to com.google.chromecast.umano
 cast_receiver.js:55
 [  0.109s] [cast.receiver.ConnectionService] Open connection service websocket: url=ws://localhost:8008/connection
 cast_receiver.js:55
 [  0.110s] [goog.net.WebSocket] Opening the WebSocket on ws://localhost:8008/connection
 cast_receiver.js:55
 [  0.111s] [cast.receiver.Receiver] Receiver started.
 cast_receiver.js:55
 [  0.112s] [goog.net.WebSocket] An error occurred: undefined
 cast_receiver.js:55
 [  0.113s] [cast.receiver.ConnectionService] Got event: b
 cast_receiver.js:55
 [  0.113s] [cast.receiver.ConnectionService] Close connection service websocket
 cast_receiver.js:55
 [  0.113s] [goog.net.WebSocket] Closing the WebSocket.
 cast_receiver.js:55
WebSocket connection to 'ws://localhost:8008/connection' failed: WebSocket is closed before the connection is established. cast_receiver.js:33
 [  0.114s] [goog.net.WebSocket] The WebSocket on ws://localhost:8008/connection closed.
 cast_receiver.js:55
 [  0.115s] [cast.receiver.ConnectionService] Got event: a
 cast_receiver.js:55
 [  0.115s] [goog.net.WebSocket] The WebSocket closed normally.
4

0 回答 0