mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
stub out web client media controller
This commit is contained in:
parent
8842110e54
commit
355c3dcb42
21 changed files with 399 additions and 1061 deletions
|
@ -67,7 +67,7 @@
|
|||
}
|
||||
|
||||
function renderSubProfiles(page, profile) {
|
||||
|
||||
|
||||
renderDirectPlayProfiles(page, profile.DirectPlayProfiles);
|
||||
renderTranscodingProfiles(page, profile.TranscodingProfiles);
|
||||
renderContainerProfiles(page, profile.ContainerProfiles);
|
||||
|
@ -75,10 +75,11 @@
|
|||
renderMediaProfiles(page, profile.MediaProfiles);
|
||||
}
|
||||
|
||||
function editDirectPlayProfile(page, directPlayProfile, isNew) {
|
||||
function editDirectPlayProfile(page, directPlayProfile) {
|
||||
|
||||
isSubProfileNew = directPlayProfile == null;
|
||||
directPlayProfile = directPlayProfile || {};
|
||||
currentSubProfile = directPlayProfile;
|
||||
isSubProfileNew = isNew;
|
||||
|
||||
var popup = $('#popupEditDirectPlayProfile', page).popup('open');
|
||||
|
||||
|
@ -94,16 +95,16 @@
|
|||
currentSubProfile.Container = $('#txtDirectPlayContainer', page).val();
|
||||
currentSubProfile.AudioCodec = $('#txtDirectPlayAudioCodec', page).val();
|
||||
currentSubProfile.VideoCodec = $('#txtDirectPlayVideoCodec', page).val();
|
||||
|
||||
|
||||
if (isSubProfileNew) {
|
||||
|
||||
currentProfile.DirectPlayProfiles.push(currentSubProfile);
|
||||
}
|
||||
}
|
||||
|
||||
renderSubProfiles(page, currentProfile);
|
||||
|
||||
currentSubProfile = null;
|
||||
|
||||
|
||||
$('#popupEditDirectPlayProfile', page).popup('close');
|
||||
}
|
||||
|
||||
|
@ -432,7 +433,7 @@
|
|||
|
||||
}).done(function () {
|
||||
|
||||
Dashboard.navigate('dlnaprofiles.html');
|
||||
Dashboard.alert('Settings saved.');
|
||||
});
|
||||
|
||||
} else {
|
||||
|
@ -503,6 +504,12 @@
|
|||
|
||||
});
|
||||
|
||||
$('.btnAddDirectPlayProfile', page).on('click', function () {
|
||||
|
||||
editDirectPlayProfile(page);
|
||||
|
||||
});
|
||||
|
||||
}).on('pageshow', "#dlnaProfilePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue