refactor: implement new playback method for playbutton (wip)
This commit is contained in:
27 files changed
+1926
-50
No files matched your search
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* @deprecated - Check @/utils/playback-profiles/index
|
||||
*/
|
||||
|
||||
import {
|
||||
SubtitleDeliveryMethod,
|
||||
type SubtitleProfile
|
||||
} from '@jellyfin/sdk/lib/generated-client';
|
||||
|
||||
/**
|
||||
* Returns a valid SubtitleProfile for the current platform.
|
||||
*
|
||||
* @returns An array of subtitle profiles for the current platform.
|
||||
*/
|
||||
export function getSubtitleProfiles(): SubtitleProfile[] {
|
||||
const SubtitleProfiles: SubtitleProfile[] = [];
|
||||
|
||||
SubtitleProfiles.push(
|
||||
{
|
||||
Format: 'vtt',
|
||||
Method: SubtitleDeliveryMethod.External
|
||||
},
|
||||
{
|
||||
Format: 'ass',
|
||||
Method: SubtitleDeliveryMethod.External
|
||||
},
|
||||
{
|
||||
Format: 'ssa',
|
||||
Method: SubtitleDeliveryMethod.External
|
||||
}
|
||||
);
|
||||
|
||||
return SubtitleProfiles;
|
||||
}
|
||||
Reference in new issue
Block a user