Interface: MOQtailPlayerOptions
Properties
catalogTimeoutMs?
optionalcatalogTimeoutMs?:number
Default 10 000.
client?
optionalclient?:object
Shared by every player on the client, compared for UNSUPPORTED_ORIGIN.
reconnectAttempts?
optionalreconnectAttempts?:number
Default 5.
setupOptions?
optionalsetupOptions?:SetupOptions
transportOptions?
optionaltransportOptions?:WebTransportOptions&object
Type Declaration
protocols?
optionalprotocols?:string[]
eventTimelines?
optionaleventTimelines?:string[] |"all"
maxCatalogBytes?
optionalmaxCatalogBytes?:number
Default 16 MiB.
objectOrdering?
optionalobjectOrdering?:ObjectOrdering
How media sources order each request's objects. Default: a 150 ms window.
plugins?
optionalplugins?:Plugin[]
Entries made with definePlugin. Their setup parameters are shared; their features apply to this player.
preferredLanguage?
optionalpreferredLanguage?:string
preferWorker?
optionalpreferWorker?:boolean
Runs the engines of elements that allow it, such as decoding and canvas rendering, in a worker the player starts, where the browser has what they need. Default true.
worker?
optionalworker?: () =>Worker
Starts the worker from your own script, which calls serveWorker from moqtail/player/worker with your elements' engines. Used with preferWorker only.
Returns
Worker