refactor: implement new playback method for playbutton (wip)

This commit is contained in:
Prayag Prajapati committed 2024-04-24 16:19:45 +05:30
1 parent a7a5d45b33
commit ef003e04a5
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;
}