@@ -14,6 +14,10 @@ export const defaultSettings: Settings = {
1414 preferredAttribution : 0 ,
1515 languageOverride : null ,
1616 instanceOverride : null ,
17+ videoFormat : "h264" ,
18+ videoQuality : "1080" ,
19+ audioFormat : "mp3" ,
20+ audioQuality : "128" ,
1721}
1822
1923export const settingOptions : {
@@ -23,6 +27,10 @@ export const settingOptions: {
2327 preferredAttribution : [ 0 , 1 ] ,
2428 languageOverride : [ null , ...locales ] ,
2529 instanceOverride : [ null , customValue ] ,
30+ videoFormat : [ "h264" , "h265" , "av1" , "vp9" ] ,
31+ videoQuality : [ "144" , "240" , "360" , "480" , "720" , "1080" , "1440" , "2160" , "max" ] ,
32+ audioFormat : [ "best" , "mp3" , "ogg" , "wav" , "opus" ] ,
33+ audioQuality : [ "8" , "64" , "96" , "128" , "256" , "320" ] ,
2634}
2735
2836export const settingI18n : {
@@ -32,6 +40,10 @@ export const settingI18n: {
3240 preferredAttribution : { key : "attribution" , mode : "translatable" } ,
3341 languageOverride : { key : "lang" , mode : "translatable" } ,
3442 instanceOverride : { key : "instance" , mode : "literal" } ,
43+ videoFormat : { key : "video-format" , mode : "translatable" } ,
44+ videoQuality : { key : "video-quality" , mode : "literal" } ,
45+ audioFormat : { key : "audio-format" , mode : "translatable" } ,
46+ audioQuality : { key : "audio-quality" , mode : "literal" } ,
3547}
3648
3749export async function getSettings ( id : number ) : Promise < Settings > {
0 commit comments