Browse Source

Show YT player container while player is loading to fix missing events on Firefox.

pull/110/head
Joachim Bauch 12 years ago
parent
commit
817f2c290b
  1. 8
      static/js/directives/youtubevideo.js

8
static/js/directives/youtubevideo.js

@ -292,7 +292,13 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'], @@ -292,7 +292,13 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'],
"onStateChange": onPlayerStateChange
}
});
$scope.isPublisher = with_controls;
$("#youtubeplayer").show();
safeApply($scope, function(scope) {
// YT player events don't fire in Firefox if
// player is not visible, so show while loading
scope.playbackActive = true;
scope.isPublisher = with_controls;
});
}
});
};

Loading…
Cancel
Save