onEnded abstract method

void onEnded(
  1. OnEndedCallback cb
)

Sets the provided OnEndedCallback for this MediaStreamTrack.

It's called when a playback or streaming has stopped because the end of the media was reached or because no further data is available.

This is a terminate state.

Implementation

void onEnded(OnEndedCallback cb);