mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 11:42:04 +00:00
Fix some volume sync issues and another small issue
This commit is contained in:
parent
1efcca6be9
commit
73235e5fbb
4 changed files with 16 additions and 4 deletions
|
|
@ -720,6 +720,12 @@ function VimeoIsADoucheCopter(id, cb) {
|
||||||
cb(files);
|
cb(files);
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (data.indexOf("crawler") !== -1) {
|
||||||
|
setImmediate(function () {
|
||||||
|
VimeoIsADoucheCopter(id, cb);
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
Logger.errlog.log("Vimeo workaround error: ");
|
Logger.errlog.log("Vimeo workaround error: ");
|
||||||
Logger.errlog.log(e);
|
Logger.errlog.log(e);
|
||||||
Logger.errlog.log(data);
|
Logger.errlog.log(data);
|
||||||
|
|
|
||||||
|
|
@ -1011,8 +1011,10 @@ Callbacks = {
|
||||||
changeMedia: function(data) {
|
changeMedia: function(data) {
|
||||||
if (PLAYER) {
|
if (PLAYER) {
|
||||||
PLAYER.getVolume(function (v) {
|
PLAYER.getVolume(function (v) {
|
||||||
VOLUME = v;
|
if (typeof v === "number") {
|
||||||
setOpt("volume", VOLUME);
|
VOLUME = v;
|
||||||
|
setOpt("volume", VOLUME);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ var USEROPTS = {
|
||||||
no_h264 : getOrDefault("no_h264", default_noh264())
|
no_h264 : getOrDefault("no_h264", default_noh264())
|
||||||
};
|
};
|
||||||
|
|
||||||
var VOLUME = getOrDefault("volume", 1);
|
var VOLUME = parseFloat(getOrDefault("volume", 1));
|
||||||
|
|
||||||
var NO_WEBSOCKETS = USEROPTS.altsocket;
|
var NO_WEBSOCKETS = USEROPTS.altsocket;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1048,7 +1048,11 @@ function RawVideoPlayer(data) {
|
||||||
|
|
||||||
self.getVolume = function (cb) {
|
self.getVolume = function (cb) {
|
||||||
if (self.player) {
|
if (self.player) {
|
||||||
cb(self.player.volume);
|
if (self.player.muted) {
|
||||||
|
cb(0);
|
||||||
|
} else {
|
||||||
|
cb(self.player.volume);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue