Opus/FFmpeg: Add more streaming types to handle, now supports working Ogg Vorbis, Opus, and FLAC streaming

CQTexperiment
Christopher Snowhill 2021-12-22 16:23:54 -08:00
parent 4ff38268ae
commit e207cdc022
2 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ int lockmgr_callback(void ** mutex, enum AVLockOp op)
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"application/wma", @"application/x-wma", @"audio/x-wma", @"audio/x-ms-wma", @"audio/x-tak", @"audio/aacp", @"audio/mpeg", @"audio/mp4", @"audio/x-mp3", @"audio/x-mp2", @"audio/x-matroska", @"audio/x-ape", @"audio/x-ac3", @"audio/x-dts", @"audio/x-dtshd", @"audio/x-at3", @"audio/wav", @"audio/tta", @"audio/x-tta", @"audio/x-twinvq", nil];
return [NSArray arrayWithObjects:@"application/wma", @"application/x-wma", @"audio/x-wma", @"audio/x-ms-wma", @"audio/x-tak", @"application/ogg", @"audio/aacp", @"audio/mpeg", @"audio/mp4", @"audio/x-mp3", @"audio/x-mp2", @"audio/x-matroska", @"audio/x-ape", @"audio/x-ac3", @"audio/x-dts", @"audio/x-dtshd", @"audio/x-at3", @"audio/wav", @"audio/tta", @"audio/x-tta", @"audio/x-twinvq", nil];
}
+ (float)priority

View File

@ -157,7 +157,7 @@ opus_int64 sourceTell(void *_stream)
+ (NSArray *)mimeTypes
{
return [NSArray arrayWithObjects:@"audio/x-opus+ogg", nil];
return [NSArray arrayWithObjects:@"audio/x-opus+ogg", @"application/ogg", nil];
}
+ (float)priority