mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
handle different message types from chromecast
This commit is contained in:
parent
73f453f22a
commit
9bee9b17bf
@ -154,7 +154,9 @@
|
||||
|
||||
CastPlayer.prototype.messageListener = function (namespace, message) {
|
||||
|
||||
message = JSON.parse(message);
|
||||
if (typeof (message) === 'string') {
|
||||
message = JSON.parse(message);
|
||||
}
|
||||
|
||||
if (message.type == 'playbackerror') {
|
||||
|
||||
@ -180,7 +182,6 @@
|
||||
}
|
||||
else if (message.type) {
|
||||
Events.trigger(this, message.type, [message.data]);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user