- Preview: Use source select box actually forces a source, not a mime type
Embed
- added forceSource option
- player error messages clear the container html before appending
This commit is contained in:
Cat 2016-11-21 15:24:36 +01:00 committed by Thulinma
parent 6276485b66
commit 7b96407e9b
5 changed files with 67 additions and 14 deletions

View file

@ -3335,7 +3335,7 @@ var UI = {
options.forcePlayer = $s_players.val()
}
if ($s_mimes.val() != '') {
options.forceType = $s_mimes.val()
options.forceSource = $s_mimes.val()
}
mistPlay(other,options);
}
@ -3391,7 +3391,7 @@ var UI = {
var s = mistvideo[other].source[i];
var human = UI.humanMime(s.type);
$s_mimes.append(
$('<option>').val(s.type).text(
$('<option>').val(i).text(
(human ? human+' @ '+s.url.substring(s.url.length - s.relurl.length,0) : UI.format.capital(s.type)+' @ '+s.url.substring(s.url.length - s.relurl.length,0))
)
);