diff --git a/.changes/windows-stop-camera-after-unpublish b/.changes/windows-stop-camera-after-unpublish new file mode 100644 index 00000000..1cdc8258 --- /dev/null +++ b/.changes/windows-stop-camera-after-unpublish @@ -0,0 +1 @@ +patch type="fixed" "Windows: stop camera after unpublishing video track" diff --git a/lib/src/support/platform.dart b/lib/src/support/platform.dart index 94ef0f5a..3c3bb05f 100644 --- a/lib/src/support/platform.dart +++ b/lib/src/support/platform.dart @@ -39,9 +39,7 @@ BrowserVersion lkBrowserVersion() => lkBrowserVersionImplementation(); /// skips stop/replaceTrack for the following platforms and only toggles /// track.enabled. -bool skipStopForTrackMute() => - {PlatformType.windows}.contains(lkPlatform()) || - (lkPlatformIs(PlatformType.web) && [BrowserType.firefox].contains(lkBrowser())); +bool skipStopForTrackMute() => (lkPlatformIs(PlatformType.web) && [BrowserType.firefox].contains(lkBrowser())); enum PlatformType { web, windows, linux, macOS, android, fuchsia, iOS }