Skip to content

Commit

Permalink
Merge pull request #38 from ant-media/make_conference_compatible_with…
Browse files Browse the repository at this point in the history
…_new_web_conference_sample

Stop play and publish separately in Conferencing
  • Loading branch information
mekya authored Feb 21, 2024
2 parents d250fc1 + d529280 commit 8921320
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 8921320

Please sign in to comment.