mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
- Introduced tooling for building and staging the macOS `libmpv` runtime for IPTVnator's embedded MPV player. - Added `build-macos-runtime.mjs` for building an LGPL-compatible runtime from source. - Created `stage-macos-runtime.mjs` for staging the built runtime artifacts. - Implemented validation for the packaged embedded MPV runtime in `electron-after-pack.cjs` and `embedded-mpv-macos.cjs`. - Updated packaging scripts to ensure the embedded MPV runtime is correctly integrated and validated during the build process. - Added README files to document the expected layout and usage for the embedded MPV runtime artifacts. Entire-Checkpoint: c6e522b4276c
45 lines
893 B
TypeScript
45 lines
893 B
TypeScript
export type EmbeddedMpvSessionStatus =
|
|
| 'idle'
|
|
| 'loading'
|
|
| 'playing'
|
|
| 'paused'
|
|
| 'error'
|
|
| 'closed';
|
|
|
|
export interface EmbeddedMpvBounds {
|
|
x: number;
|
|
y: number;
|
|
width: number;
|
|
height: number;
|
|
}
|
|
|
|
export interface EmbeddedMpvSupport {
|
|
supported: boolean;
|
|
platform: string;
|
|
reason?: string;
|
|
}
|
|
|
|
export interface EmbeddedMpvAudioTrack {
|
|
id: number;
|
|
title?: string;
|
|
language?: string;
|
|
selected: boolean;
|
|
defaultTrack?: boolean;
|
|
forced?: boolean;
|
|
}
|
|
|
|
export interface EmbeddedMpvSession {
|
|
id: string;
|
|
title: string;
|
|
streamUrl: string;
|
|
status: EmbeddedMpvSessionStatus;
|
|
positionSeconds: number;
|
|
durationSeconds: number | null;
|
|
volume: number;
|
|
audioTracks: EmbeddedMpvAudioTrack[];
|
|
selectedAudioTrackId: number | null;
|
|
startedAt: string;
|
|
updatedAt: string;
|
|
error?: string;
|
|
}
|