mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
handle different message types from chromecast
This commit is contained in:
parent
73f453f22a
commit
9bee9b17bf
1 changed files with 3 additions and 2 deletions
|
@ -154,7 +154,9 @@
|
|||
|
||||
CastPlayer.prototype.messageListener = function (namespace, 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…
Add table
Add a link
Reference in a new issue