Merge pull request #6561 from kepstin/caption-fixes
Wait until the media is ready before initializing the acorn player.
This commit is contained in:
commit
fb3bce1d7d
@ -531,16 +531,6 @@ function loadPlayback() {
|
|||||||
loadAudio();
|
loadAudio();
|
||||||
}
|
}
|
||||||
|
|
||||||
// load up the acorn controls
|
|
||||||
logger.info("==Loading acorn media player");
|
|
||||||
$('#video').acornMediaPlayer({
|
|
||||||
theme: 'bigbluebutton',
|
|
||||||
volumeSlider: 'vertical'
|
|
||||||
});
|
|
||||||
$('#video').on("swap", function() {
|
|
||||||
swapVideoPresentation();
|
|
||||||
});
|
|
||||||
|
|
||||||
if (hasDeskshare) {
|
if (hasDeskshare) {
|
||||||
loadDeskshare();
|
loadDeskshare();
|
||||||
} else {
|
} else {
|
||||||
@ -802,6 +792,16 @@ document.addEventListener('playback-ready', function(event) {
|
|||||||
if (dataReady && mediaReady && contentReady) {
|
if (dataReady && mediaReady && contentReady) {
|
||||||
runPopcorn();
|
runPopcorn();
|
||||||
if (firstLoad) {
|
if (firstLoad) {
|
||||||
|
// load up the acorn controls
|
||||||
|
logger.info("==Loading acorn media player");
|
||||||
|
$('#video').acornMediaPlayer({
|
||||||
|
theme: 'bigbluebutton',
|
||||||
|
volumeSlider: 'vertical'
|
||||||
|
});
|
||||||
|
$('#video').on("swap", function() {
|
||||||
|
swapVideoPresentation();
|
||||||
|
});
|
||||||
|
|
||||||
initPopcorn();
|
initPopcorn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user