@stremio/stremio-video 0.0.20-rc.1 → 0.0.20-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -74,8 +74,7 @@ function ChromecastSenderVideo(options) {
|
|
|
74
74
|
function onTransportError(error, action) {
|
|
75
75
|
events.emit('error', Object.assign({}, ERROR.CHROMECAST_SENDER_VIDEO.MESSAGE_SEND_FAILED, {
|
|
76
76
|
error: error,
|
|
77
|
-
action: action
|
|
78
|
-
message: 'Chromecast transport error'
|
|
77
|
+
action: action
|
|
79
78
|
}));
|
|
80
79
|
}
|
|
81
80
|
function onMessage(message) {
|
|
@@ -85,14 +84,14 @@ function ChromecastSenderVideo(options) {
|
|
|
85
84
|
} catch (error) {
|
|
86
85
|
events.emit('error', Object.assign({}, ERROR.CHROMECAST_SENDER_VIDEO.INVALID_MESSAGE_RECEIVED, {
|
|
87
86
|
error: error,
|
|
88
|
-
|
|
87
|
+
args: message
|
|
89
88
|
}));
|
|
90
89
|
return;
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
if (!parsedMessage || typeof parsedMessage.event !== 'string') {
|
|
94
93
|
events.emit('error', Object.assign({}, ERROR.CHROMECAST_SENDER_VIDEO.INVALID_MESSAGE_RECEIVED, {
|
|
95
|
-
|
|
94
|
+
args: message
|
|
96
95
|
}));
|
|
97
96
|
return;
|
|
98
97
|
}
|