Skip to content

Commit

Permalink
Stop play and publish separately
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed Feb 21, 2024
1 parent 46deae2 commit 015a2c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion WebRTC-Sample-App/ConferenceViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ open class ConferenceViewController: UIViewController , AVCaptureVideoDataOutput
}

open override func viewWillDisappear(_ animated: Bool) {
self.conferenceClient?.leaveFromRoom()
//stop playing
self.conferenceClient?.stop(streamId: self.roomId);

//stop publishing
self.conferenceClient?.stop(streamId: self.publisherStreamId);


}

public func removePlayers() {
Expand Down

0 comments on commit 015a2c0

Please sign in to comment.