Skip to content

Commit

Permalink
re-enable subtitleSettingsPanel & audioTrackSettingsPanel in custom ui
Browse files Browse the repository at this point in the history
  • Loading branch information
aquu committed Sep 21, 2023
1 parent d9f91d0 commit 94ddefc
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions src/ts/uifactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,34 +182,34 @@ export namespace UIFactory {
hidden: true,
});

// let subtitleListBox = new SubtitleListBox();
// let subtitleSettingsPanel = new SettingsPanel({
// components: [
// new SettingsPanelPage({
// components: [
// new SettingsPanelItem(null, subtitleListBox),
// ],
// }),
// ],
// hidden: true,
// });

// let audioTrackListBox = new AudioTrackListBox();
// let audioTrackSettingsPanel = new SettingsPanel({
// components: [
// new SettingsPanelPage({
// components: [
// new SettingsPanelItem(null, audioTrackListBox),
// ],
// }),
// ],
// hidden: true,
// });
let subtitleListBox = new SubtitleListBox();
let subtitleSettingsPanel = new SettingsPanel({
components: [
new SettingsPanelPage({
components: [
new SettingsPanelItem(null, subtitleListBox),
],
}),
],
hidden: true,
});

let audioTrackListBox = new AudioTrackListBox();
let audioTrackSettingsPanel = new SettingsPanel({
components: [
new SettingsPanelPage({
components: [
new SettingsPanelItem(null, audioTrackListBox),
],
}),
],
hidden: true,
});

let controlBar = new ControlBar({
components: [
// audioTrackSettingsPanel,
// subtitleSettingsPanel,
audioTrackSettingsPanel,
subtitleSettingsPanel,
settingsPanel,
new Container({
components: [
Expand All @@ -229,14 +229,14 @@ export namespace UIFactory {
new AirPlayToggleButton(),
new CastToggleButton(),
new VRToggleButton(),
// new SettingsToggleButton({
// settingsPanel: audioTrackSettingsPanel,
// cssClass: 'ui-audiotracksettingstogglebutton',
// }),
// new SettingsToggleButton({
// settingsPanel: subtitleSettingsPanel,
// cssClass: 'ui-subtitlesettingstogglebutton',
// }),
new SettingsToggleButton({
settingsPanel: audioTrackSettingsPanel,
cssClass: 'ui-audiotracksettingstogglebutton',
}),
new SettingsToggleButton({
settingsPanel: subtitleSettingsPanel,
cssClass: 'ui-subtitlesettingstogglebutton',
}),
new SettingsToggleButton({ settingsPanel: settingsPanel }),
new FullscreenToggleButton(),
],
Expand Down

0 comments on commit 94ddefc

Please sign in to comment.