Merge www/js/player.js from gdrive-youtube

This commit is contained in:
calzoneman 2015-09-26 20:00:07 -07:00
parent c5e73e156a
commit b2a4afd9ff
1 changed files with 5 additions and 5 deletions

View File

@ -1260,19 +1260,19 @@
}; };
window.loadMediaPlayer = function(data) { window.loadMediaPlayer = function(data) {
var e; var e, error1, error2;
if (data.meta.direct && data.type !== 'gd') { if (data.meta.direct && data.type !== 'gd') {
try { try {
return window.PLAYER = new VideoJSPlayer(data); return window.PLAYER = new VideoJSPlayer(data);
} catch (_error) { } catch (error1) {
e = _error; e = error1;
return console.error(e); return console.error(e);
} }
} else if (data.type in TYPE_MAP) { } else if (data.type in TYPE_MAP) {
try { try {
return window.PLAYER = TYPE_MAP[data.type](data); return window.PLAYER = TYPE_MAP[data.type](data);
} catch (_error) { } catch (error2) {
e = _error; e = error2;
return console.error(e); return console.error(e);
} }
} }