Socket
Socket
Sign inDemoInstall

castv2-player

Package Overview
Dependencies
89
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.8 to 1.1.9

27

lib/persistentPlayer.js

@@ -262,22 +262,25 @@ "use strict"

log.error("%s - Error parsing announcement URL as JSON: %s\nPassed URL: %s", that._name, error, url);
return Promise.reject(error)
return Promise.reject(error);
}
}
return that.getDefaultPlayerPromise()
.then(function(){
if (that.getStatus() === undefined || that.getCurrentPlaylistId() === undefined || that.getStatus().playerState == "IDLE")
//currently not playing -> playUrl and wait for it to finish
return that.playUrl (url, options)
.then(function(playUrlPromise) {
return new Promise(function (resolve, reject) {
that.on(that.EVENT_STATUS, function(status) {
let announcementCheckStatus = function (status) {
if (status.media.contentId != url || (status.playerState != "PLAYING")) {
log.info ("%s - Finished playing announcement", that._name);
that.removeListener(that.EVENT_STATUS, announcementCheckStatus);
resolve(playUrlPromise);
}
});
};
that.on(that.EVENT_STATUS, announcementCheckStatus);
});
});
}
}
return that.getDefaultPlayerPromise()
.then(function(){
if (that.getStatus() === undefined || that.getCurrentPlaylistId() === undefined || that.getStatus().playerState == "IDLE")
//currently not playing -> playUrl and wait for it to finish
return that.playUrl (url, options);
else {

@@ -284,0 +287,0 @@

{
"name": "castv2-player",
"version": "1.1.8",
"version": "1.1.9",
"description": "A Chromecast client based on the new (CASTV2) protocol",

@@ -32,4 +32,5 @@ "author": "angelnu",

"chromecast",
"castv2"
"castv2",
"home"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc