Implement #259
This commit is contained in:
parent
26a46fc1d9
commit
98b6273dc4
3 changed files with 11 additions and 1 deletions
|
|
@ -224,10 +224,15 @@ $("#userpl_save").click(function() {
|
|||
});
|
||||
|
||||
/* video controls */
|
||||
function selectQuality(select, preset) {
|
||||
|
||||
}
|
||||
(function() {
|
||||
function qualHandler(select, preset) {
|
||||
$(select).click(function() {
|
||||
VIDEOQUALITY = preset;
|
||||
USEROPTS.default_quality = select;
|
||||
saveOpts();
|
||||
var btn = $("#qualitywrap .btn.dropdown-toggle");
|
||||
var caret = btn.find(".caret").detach();
|
||||
btn.text($(select).text());
|
||||
|
|
@ -236,11 +241,14 @@ $("#userpl_save").click(function() {
|
|||
PLAYER.player.setPlaybackQuality(VIDEOQUALITY);
|
||||
});
|
||||
}
|
||||
qualHandler("#quality_auto", "");
|
||||
qualHandler("#quality_240p", "small");
|
||||
qualHandler("#quality_360p", "medium");
|
||||
qualHandler("#quality_480p", "large");
|
||||
qualHandler("#quality_720p", "hd720");
|
||||
qualHandler("#quality_1080p", "hd1080");
|
||||
if($(USEROPTS.default_quality).length > 0)
|
||||
$(USEROPTS.default_quality).click();
|
||||
})();
|
||||
|
||||
$("#mediarefresh").click(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue