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]
Optional
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.
transform 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
convenience specialization of MetadataSync that doesn't transform the metadata