mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-11 06:42:23 +00:00
Refactors the casting player screen and related components for improved code clarity, performance, and maintainability. - Removes unused code and simplifies logic, especially around audio track selection and recommended stereo track handling. - Improves the formatting of trickplay time displays for consistency. - Streamlines UI elements and removes unnecessary conditional checks. - Updates the Chromecast component to use hooks for side effects, ensuring the Chromecast session remains active. - Improves the display of the language in the audio track display.
12 lines
336 B
TypeScript
12 lines
336 B
TypeScript
/**
|
|
* Chromecast player configuration and types
|
|
*/
|
|
|
|
export interface ChromecastSegmentData {
|
|
intro: { start: number; end: number } | null;
|
|
credits: { start: number; end: number } | null;
|
|
recap: { start: number; end: number } | null;
|
|
commercial: { start: number; end: number }[];
|
|
preview: { start: number; end: number }[];
|
|
}
|