Abstract initialize a combined metadata extractor. this builds on top of sync/RtpScriptTransform.attachMetadataExtractor, see there for usage.
the passed worker must call startMetadataSyncService, NOT sync/RtpScriptTransform.startMetadataExtractorService.
negotiated clock rate for the video media (used to derive jitterbuffer parameters)
<video> element playing the video received by receiver
RTP receiver handing the played video
our options
Optional resetjitter buffer: maximum timestamp offset allowed before jitterbuffer reset [seconds, default = 5]
Private Optional cleanupOptional metadatauser metadata for the last presented video frame
Protected queueReadonly readypromise resolving when the metadata extractor is ready
called by requestVideoFrameCallback when the video element presents a new frame.
the default implementation looks up the new metadata from the jitter buffer,
transforms it with transformMetadata and updates metadata.
this method can be overriden to gather stats.
Abstract transformtransform metadata after retrieval from the jitter buffer, if present for the current frame.
this is a good place to do simple post-processing that would incur extra cost if done in the worker because of the extra serialization, such as accumulating prior metadata or deltas.
Generated using TypeDoc
Combines a metadata extractor with a jitter buffer with a metadata extractor, and fetches appropriate metadata as frames are rendered in a
<video>element.Most use cases should be able to use this helper instead of the individual parts.