@ -69,6 +69,7 @@ function get_playlist(plid, retries) {
xhr.send();
}
window.addEventListener('load', function (e) {
if (video_data.plid) {
get_playlist(video_data.plid);
} else if (video_data.video_series) {
@ -98,3 +99,4 @@ if (video_data.plid) {
location.assign(url.pathname + url.search);
});
@ -151,6 +151,7 @@ player.vttThumbnails({
// Enable annotations
if (!video_data.params.listen && video_data.params.annotations) {
var video_container = document.getElementById('player');
let xhr = new XMLHttpRequest();
xhr.responseType = 'text';
@ -190,6 +191,7 @@ if (!video_data.params.listen && video_data.params.annotations) {
function increase_volume(delta) {
@ -439,6 +439,7 @@ if (video_data.play_next) {
@ -455,3 +456,4 @@ if (video_data.params.comments[0] === 'youtube') {
comments = document.getElementById('comments');
comments.innerHTML = '';