Fix vimeo workaround
This commit is contained in:
parent
39090fbe40
commit
705b8ce10a
2 changed files with 5 additions and 5 deletions
|
|
@ -888,12 +888,12 @@ PlaylistModule.prototype.startPlayback = function (time) {
|
|||
var media = self.current.media;
|
||||
media.reset();
|
||||
|
||||
if (media.type === "vi" && !media.direct && Config.get("vimeo-workaround")) {
|
||||
if (media.type === "vi" && !media.meta.direct && Config.get("vimeo-workaround")) {
|
||||
self.channel.activeLock.lock();
|
||||
vimeoWorkaround(media.id, function (direct) {
|
||||
self.channel.activeLock.release();
|
||||
if (self.current && self.current.media === media) {
|
||||
self.current.media.direct = direct;
|
||||
self.current.media.meta.direct = direct;
|
||||
self.startPlayback(time);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue