File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed
Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @livepeer/core " : patch
3+ ---
4+
5+ Decrease the minimal value of backoffMax from 10s to 1s
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ type PlayerSearchParams = {
2424 muted ?: Muted ;
2525 loop ?: Loop ;
2626 lowLatency ?: LowLatency ;
27+ backoffMax ?: number ;
2728 objectFit ?: ObjectFit ;
2829 constant ?: Constant ;
2930 clipLength ?: ClipLength ;
@@ -51,6 +52,7 @@ export default async function PlayerPage({
5152 searchParams ?. lowLatency === "force"
5253 ? "force"
5354 : coerceToBoolean ( searchParams ?. lowLatency , true ) ,
55+ backoffMax : searchParams ?. backoffMax ?? null ,
5456 objectFit : searchParams ?. objectFit ?? "contain" ,
5557 clipLength : searchParams ?. clipLength
5658 ? ( Number ( searchParams . clipLength ) as ClipLength )
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export type PlayerProps = Partial<{
3030 muted : boolean ;
3131 loop : boolean ;
3232 lowLatency : boolean | "force" ;
33+ backoffMax : number | null ;
3334 objectFit : "cover" | "contain" ;
3435 constant : boolean ;
3536 clipLength : ClipLength | null ;
@@ -97,6 +98,7 @@ export async function PlayerWithControls(props: PlayerProps) {
9798 autoPlay = { props . autoplay }
9899 volume = { props . muted ? 0 : undefined }
99100 lowLatency = { props . lowLatency }
101+ backoffMax = { props . backoffMax ?? undefined }
100102 clipLength = { props . clipLength ?? null }
101103 playbackRate = { props . constant ? "constant" : undefined }
102104 jwt = { props . jwt }
Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ export const createControllerStore = ({
643643 aspectRatio : initialProps ?. aspectRatio ?? null ,
644644 autoPlay : initialProps . autoPlay ?? false ,
645645 backoff : Math . max ( initialProps . backoff ?? 500 , 100 ) ,
646- backoffMax : Math . max ( initialProps . backoffMax ?? 30000 , 10000 ) ,
646+ backoffMax : Math . max ( initialProps . backoffMax ?? 30000 , 1000 ) ,
647647 clipLength : initialProps . clipLength ?? null ,
648648 cacheWebRTCFailureMs : initialProps . cacheWebRTCFailureMs ?? null ,
649649 hotkeys : initialProps ?. hotkeys ?? true ,
You can’t perform that action at this time.
0 commit comments