limit the mediaelement-js ui to the existing players

This commit is contained in:
MaZderMind 2016-12-22 20:25:18 +01:00
parent b45a2c9de7
commit efdae0713e
6 changed files with 8 additions and 4 deletions

View file

@ -10,16 +10,16 @@ $(function() {
if($('.video-wrap').hasClass('has-subtitles'))
feat.push('subtitles');
$('body.room video, body.embed video').mediaelementplayer({
$('body.room video.mejs, body.embed video.mejs').mediaelementplayer({
features: feat,
enableAutosize: true
});
$('body.room audio, body.embed audio').mediaelementplayer({
$('body.room audio.mejs, body.embed audio.mejs').mediaelementplayer({
features: ['playpause', 'volume', 'current']
});
$('body.relive-player video').mediaelementplayer({
$('body.relive-player video.mejs').mediaelementplayer({
mode: 'auto_plugin',
plugins: ['flash'],
flashName: 'flashmediaelement.swf',

View file

@ -2,6 +2,7 @@
autoplay="autoplay"
preload="auto"
style="width: 300px;"
class="mejs"
>
<source
src="<?=h($stream->getAudioUrl('mp3'))?>"

View file

@ -2,6 +2,7 @@
autoplay="autoplay"
preload="auto"
style="width: 230px;"
class="mejs"
>
<source
src="<?=h($stream->getMusicUrl('mp3'))?>"

View file

@ -5,7 +5,7 @@
width="<?=h($width)?>"
height="<?=h($height)?>"
style="width: 100%; height: 100%;"
class="relive"
class="relive mejs"
>
<source
src="<?=h(forceproto($talk['playlist']))?>"

View file

@ -5,6 +5,7 @@
width="<?=h($stream->getVideoWidth())?>"
height="<?=h($stream->getVideoHeight())?>"
style="width: 100%; height: 100%;"
class="mejs"
>
<source
data-plugin-type="native"

View file

@ -11,6 +11,7 @@
width="<?=h($stream->getVideoWidth())?>"
height="<?=h($stream->getVideoHeight())?>"
style="width: 100%; height: 100%;"
class="mejs"
>
<source
data-plugin-type="native"