mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-02-09 01:55:46 +00:00
First commit
This commit is contained in:
36
Tesses.YouTubeDownloader/src/Resolution.tcross
Normal file
36
Tesses.YouTubeDownloader/src/Resolution.tcross
Normal file
@@ -0,0 +1,36 @@
|
||||
class Resolution
|
||||
{
|
||||
/^ Used to fetch metadata only ^/
|
||||
static getNoDownload() "NoDownload";
|
||||
/^ Get the video/audio mp4 (muxed by YouTube) ^/
|
||||
static getLowVideo() "LowVideo";
|
||||
/^ Get the highest video stream ^/
|
||||
static getVideoOnly() "VideoOnly";
|
||||
/^ Get the highest audio stream ^/
|
||||
static getAudioOnly() "AudioOnly";
|
||||
/^ Get the highest audio stream (and convert to mp3) ^/
|
||||
static getMP3() "MP3";
|
||||
/^ Get the highest audio stream (and convert to flac) ^/
|
||||
static getFLAC() "FLAC";
|
||||
/^ Get the highest video and then audio stream (and convert to mp4) ^/
|
||||
static getMP4() "MP4";
|
||||
/^ Get the highest video and then audio stream (and mux to a mkv file) ^/
|
||||
static getMKV() "MKV";
|
||||
/^ Get the highest video and then audio stream (dont convert or mux) ^/
|
||||
static getDontConvert() "DontConvert";
|
||||
|
||||
static getResolutions()
|
||||
{
|
||||
return [
|
||||
{name="Don't Download", value=Resolution.NoDownload},
|
||||
{name="Low (muxed by YouTube)", value=Resolution.LowVideo,default=true},
|
||||
{name="Highest video (no audio)", value=Resolution.VideoOnly},
|
||||
{name="Highest audio (no video)", value=Resolution.AudioOnly},
|
||||
{name="Convert to MP3", value=Resolution.MP3},
|
||||
{name="Convert to FLAC", value=Resolution.FLAC},
|
||||
{name="Convert to MP4", value=Resolution.MP4},
|
||||
{name="Mux to MKV (no transcoding)",value=Resolution.MKV},
|
||||
{name="Don't convert or Mux",value=Resolution.DontConvert}
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user