googlevideo / exports/sabr-stream / SabrStreamConfig
Interface: SabrStreamConfig
Defined in: src/types/sabrStreamTypes.ts:15
Properties
videoId
videoId:
string
Defined in: src/types/sabrStreamTypes.ts:16
fetchFunction()?
optionalfetchFunction: (input,init?) =>Promise<Response>
Defined in: src/types/sabrStreamTypes.ts:21
Custom fetch implementation to use for HTTP requests. If not provided, the global fetch function will be used.
Parameters
input
URL | RequestInfo
init?
RequestInit
Returns
Promise<Response>
serverAbrStreamingUrl
serverAbrStreamingUrl:
string
Defined in: src/types/sabrStreamTypes.ts:22
videoPlaybackUstreamerConfig
videoPlaybackUstreamerConfig:
string
Defined in: src/types/sabrStreamTypes.ts:23
heartbeatParams?
optionalheartbeatParams:HeartbeatParams
Defined in: src/types/sabrStreamTypes.ts:24
clientInfo
clientInfo:
ClientInfo
Defined in: src/types/sabrStreamTypes.ts:25
poToken?
optionalpoToken:string
Defined in: src/types/sabrStreamTypes.ts:30
Proof of Origin token. It is recommended to use SabrStreamCallbacks.onMintPoToken instead, as the server may reject the provided token if it is expired or invalid.
formats
formats:
SabrFormat[]
Defined in: src/types/sabrStreamTypes.ts:31
callbacks?
optionalcallbacks:SabrStreamCallbacks
Defined in: src/types/sabrStreamTypes.ts:32
stripDuplicateInit?
optionalstripDuplicateInit:boolean
Defined in: src/types/sabrStreamTypes.ts:37
Whether to strip duplicate initialization headers (moov/EBML) from segments after the first one.
Default
true
videoHighWaterMark?
optionalvideoHighWaterMark:number
Defined in: src/types/sabrStreamTypes.ts:42
Default
1024 * 1024 * 16
audioHighWaterMark?
optionalaudioHighWaterMark:number
Defined in: src/types/sabrStreamTypes.ts:47
Default
1024 * 1024 * 2