dispose previous stream also
This commit is contained in:
@@ -38,8 +38,9 @@ class LocalVideoTrack extends VideoTrack {
|
||||
|
||||
currentOptions = options ?? currentOptions;
|
||||
|
||||
// stop the current track
|
||||
// stop the current track & stream
|
||||
await mediaStreamTrack.stop();
|
||||
await mediaStream.dispose();
|
||||
|
||||
// create new track with options
|
||||
final newStream = await _createStream(currentOptions);
|
||||
|
||||
Reference in New Issue
Block a user