Private Optional _headerPrivate _nextPrivate _paramsOptional withStart a log
a Log object with the levels of log to call
Protected _parseProtected _parsePrivate _readEvent subscription
Name of event without the on prefix (ex: log to onLog event declared)
Subscriber Function
Optional options: { Optional signal?: AbortSignalOptional AbortSignal to stop this or multiple subscriptions in same time
Event fire on new audio Media.Sample
Optional sample: SampleEvent fire on new video Media.Sample
Optional sample: SampleEvent subscription only one time, once time fired it's automatically unsubscribe
Name of event without the on prefix (ex: log to onLog event declared)
Subscriber Function
Optional options: { Optional signal?: AbortSignalOptional AbortSignal to stop this or multiple subscriptions in same time
Event fire on ReaderError
Event fired when metadata is present in the stream
RTSReader to unserialize RTS container
Format: MEDIA PACKET -- (uint8 headerSize)[7bit trackId+1 << 2 | type](7bit firstTime)[7bit duration << 2 | hasCompositionOffset<<1 | isKeyFrame](7bit compositionOffset)(7bit size) [frame] -- DATA PACKET -- (uint8 headerSize)[7bit trackId+1 << 2 | type][7bit time](7bit size) [frame] -- INIT TRACKS -- (uint8 headerSize)[7bit 0 << 2 | 3] (7bit videoTrackId+1) (7bit audioTrackId+1)-- METADATA -- (uint8 headerSize)[7bit 0 << 2 | 0] (7bit size) [meta] --
size => optional content size! trackId => track id type = [0, 1, 2, 3] = [Data, Audio, Video, Reserved] firstTime => timestamp only the first time per track after a INIT TRACKS signal time => data time compositionOffset => composition offset frame => binary frame payload meta => JSON metadata payload