Skip to content

Commit

Permalink
stopAudioTrack で VideoTrack を止めていた箇所を Audio に修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Oct 20, 2023
1 parent 7cd6628 commit fd7df8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export default class ConnectionBase {
return new Promise((resolve, reject) => {
// すぐに stop すると視聴側に静止画像が残ってしまうので enabled false にした 100ms 後に stop する
setTimeout(() => {
const promises = stream.getVideoTracks().map(async (track) => {
const promises = stream.getAudioTracks().map(async (track) => {
track.stop()
stream.removeTrack(track)
if (this.pc !== null) {
Expand Down

0 comments on commit fd7df8b

Please sign in to comment.