stopPlayStream method
Implementation
Future<void> stopPlayStream(String streamID) async {
final index = playingStreamListNotifier.value.indexWhere(
(e) => e.streamID == streamID,
);
if (-1 == index) {
return;
}
final streamInfo = playingStreamListNotifier.value[index];
await _stopPlayStream(streamInfo);
final newList = List<ZegoStreamInfo>.from(playingStreamListNotifier.value);
newList.removeWhere((e) => e.streamID == streamID);
playingStreamListNotifier.value = newList;
streamInfo.clear();
}