Event unsubscription
Name of event without the 'on' prefix (ex: 'log' to 'onLog' event declared)
Event subscription
Name of event without the on prefix (ex: log to onLog event declared)
Subscriber Function
Optionaloptions: { signal?: AbortSignal }Optionalsignal?: AbortSignalOptional AbortSignal to stop this or multiple subscriptions in same time
Event 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
Optionaloptions: { signal?: AbortSignal }Optionalsignal?: AbortSignalOptional AbortSignal to stop this or multiple subscriptions in same time
Event fire on new sample Media.Sample
ProtectedparseChildren class must implement the parsing logic, and returns how many bytes have to be kept.
the binary to parse
StaticparseParse initData as sinf/schi payload using the same recursive parser path as CMAFReader. Returns a lightweight track object populated with encryption when tenc is found.
A advanced EventEmitter which allows to declare event as natural function in the inheriting children class, function must start by
onprefix to be recognized as an event. The function can define a behavior by default, and user can choose to redefine this behavior, or add an additionnal subscription for this event. In addition you can unsubscribe to multiple events with anAbortControllerExample