AgoraIO / Basic-Video-Broadcasting

Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, switch between front/rear cameras, and set the video parameters.
MIT License
269 stars 287 forks source link

Agora live streaming closing #153

Open myaseen5 opened 2 years ago

myaseen5 commented 2 years ago

How to close live streaming on agora in ios when user want to close or quite live stream.

plutoless commented 2 years ago

simply call engine.leaveChannel.

myaseen5 commented 2 years ago

simply call engine.leaveChannel.

where i can call this function or code

plutoless commented 2 years ago

which project you are running with? if you ever see the api call to join the channel, you simply need to call the leave api on the same object instance.

myaseen5 commented 2 years ago

there is no leave API for leaving the channel that's why i ask

myaseen5 commented 2 years ago

the above code is to add in the back button or where i add it

plutoless commented 2 years ago

@myaseen5 could you pls tell me which platform/demo you are running with?