PeersBloc constructor

PeersBloc({
  1. required MediaDevicesBloc mediaDevicesBloc,
})

Implementation

PeersBloc({required this.mediaDevicesBloc}) : super(PeersState()) {
  // if (mediaDevicesBloc.state.selectedAudioOutput?.deviceId != null) {
  //   selectedOutputId = mediaDevicesBloc.state.selectedAudioOutput!.deviceId;
  // }
  //
  // mediaDevicesBloc.stream.listen((event) {
  //   state.peers.values.forEach((p) {
  //     final String? deviceId = event.selectedAudioOutput?.deviceId;
  //     if (deviceId != null) {
  //       selectedOutputId = deviceId;
  //       p.renderer?.audioOutput = selectedOutputId;
  //     }
  //   });
  // });
}