pota/use/streampota/use/stream bundles the small MediaStream / MediaStreamTrack
ergonomic helpers you reach for when wiring up cameras, microphones,
or screen capture — copying tracks between streams and stopping things
cleanly.
copyAudioTracks(src, dst) /
copyVideoTracks(src, dst) — replace
the destination's tracks with clones of the source'sremoveAudioTracks(stream) /
removeVideoTracks(stream) —
remove tracks without stopping capturestopTrack(track) /
stopTracks(stream) /
stopStream(streamOrRecorder) — stop
tracks, or a whole stream / recorder