Skip to main content
Version: 2.0.x

RTMP Events - iOS

VideoSDK provides onLivestreamStateChanged event which will notify you of the current state of livestream for the meeting.

onLivestreamStateChanged

  • This event will be triggered when the meeting's livestream status changed.
  • You can implement this method of the abstract Class MeetingEventListener and add the listener to Meeting class using the addEventListener() method of Meeting Class.

Example

Here is the usage of the event mentioned in this page.

extension MeetingViewController: MeetingEventListener {
func onLivestreamStateChanged(state: LiveStreamState) {
switch(state) {
case .LIVESTREAM_STARTING:
print("livestream starting")

case .LIVESTREAM_STARTED:
print("livestream started")

case .LIVESTREAM_STOPPING:
print("livestream stoping")

case .LIVESTREAM_STOPPED:
print("livestream stopped")
}
}
}

API Reference

The API references for all the methods and events utilised in this guide are provided below.

Got a Question? Ask us on discord