updateStreamState method

  1. @internal
Future<void> updateStreamState(
  1. StreamState streamState
)

Implementation

@internal
Future<void> updateStreamState(StreamState streamState) async {
  // return if no change
  if (_streamState == streamState) return;
  _streamState = streamState;
  [
    participant.events,
  ].emit(TrackStreamStateUpdatedEvent(
    participant: participant,
    publication: this,
    streamState: streamState,
  ));
}