SPB Git

Repository Public

types.ts 1.2 KB 33 lines typescript

1export interface PlayerCapsule {2  id: string;3  title: string;4  durationSeconds: number;5  synthetic: boolean;6  optional: boolean;7  hls: string | null;8  mp4: string | null;9  poster: string | null;10  captions: { lang: string; label: string; src: string }[];11  chapters: { start: number; title: string }[] | null;12  transcript: { start: number; end: number; text: string }[] | null;13}14export interface PlayerSession { id: string; slug: string; number: number; title: string }1516export const SPEEDS = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];1718export const SHORTCUTS: [string[], string][] = [19  [["Espace", "K"], "Lecture ou pause"],20  [["←", "→"], "Reculer ou avancer de 5 secondes"],21  [["J", "L"], "Reculer ou avancer de 10 secondes"],22  [["↑", "↓"], "Augmenter ou baisser le volume"],23  [["M"], "Couper ou rétablir le son"],24  [["C"], "Afficher ou masquer les sous-titres"],25  [["<", ">"], "Ralentir ou accélérer la lecture"],26  [["0", "…", "9"], "Aller à 0 %, 10 %… 90 % de la vidéo"],27  [["B"], "Ajouter un signet à l’instant courant"],28  [["T"], "Mode cinéma (sans distraction)"],29  [["F"], "Plein écran"],30  [["I"], "Image dans l’image"],31  [["?"], "Afficher ou masquer cette aide"],32];33
Files main
Menu

Theme