Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
282 changes: 192 additions & 90 deletions web-ui/src/mpegts/audio/pcm-audio-player.ts

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions web-ui/src/mpegts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ export interface PlayerConfig {
/** PlaybackRate (clamped to [1, 2]) used for latency chasing. Requires `liveSync: true`. @default 1.2 */
liveSyncPlaybackRate: number;

/**
* Maximum media timestamp hole (milliseconds) treated as continuous at remux time;
* gaps at or below this size are bridged onto the output timeline. Also used by the
* PCM audio player to skip resync on small forward seeks.
* @default 300
*/
maxBufferHoleMs: number;

/** URLs to WASM decoder files, keyed by codec. Omit to disable software decoding for that codec.
* e.g. `{ mp2: "/assets/mp2_decoder.wasm" }` */
wasmDecoders: { mp2?: string };
Expand All @@ -38,8 +30,6 @@ export const defaultConfig: PlayerConfig = {
liveSyncTargetLatency: 1.5,
liveSyncPlaybackRate: 1.2,

maxBufferHoleMs: 300,

wasmDecoders: {},

bufferCleanupMaxBackward: 180,
Expand All @@ -52,8 +42,3 @@ export const defaultConfig: PlayerConfig = {
export function createDefaultConfig(): PlayerConfig {
return { ...defaultConfig };
}

/** `maxBufferHoleMs` as seconds for MSE / Web Audio timeline comparisons. */
export function maxBufferHoleSec(config: Pick<PlayerConfig, "maxBufferHoleMs">): number {
return config.maxBufferHoleMs / 1000;
}
Loading
Loading