1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

the beginnings of remote control

This commit is contained in:
Luke Pulverenti 2013-05-29 00:00:24 -04:00
parent 57fed6b0ad
commit 5bb0338772
7 changed files with 246 additions and 34 deletions

View file

@ -511,6 +511,12 @@
level: 3
}));
var ogvVideoUrl = ApiClient.getUrl('Videos/' + item.Id + '/stream.ogv', $.extend({}, baseParams, {
videoCodec: 'theora',
audioCodec: 'Vorbis'
}));
var html = '';
// HLS must be at the top for safari
@ -518,15 +524,16 @@
// Can't autoplay in these browsers so we need to use the full controls
if ($.browser.msie || $.browser.android || $.browser.iphone || $.browser.ipad) {
html += '<video class="itemVideo" autoplay controls preload="auto">';
html += '<video class="itemVideo" autoplay controls preload="none">';
} else {
html += '<video class="itemVideo" autoplay preload="auto">';
html += '<video class="itemVideo" autoplay preload="none">';
}
html += '<source type="application/x-mpegURL" src="' + hlsVideoUrl + '" />';
html += '<source type="video/mp2t" src="' + tsVideoUrl + '" />';
html += '<source type="video/webm" src="' + webmVideoUrl + '" />';
html += '<source type="video/mp4" src="' + mp4VideoUrl + '" />';
html += '<source type="video/ogg" src="' + ogvVideoUrl + '" />';
html += '</video';
var nowPlayingBar = $('#nowPlayingBar').show();