Screencast
Setup
To support screencasting from iOS devices, you will need to implement a Broadcast Upload Extension into your app.
- Choose Add Target > Broadcast Upload Extension.
- Add package dependency EyesonSdk_Screencast to broadcast extension.
- Xcode generates a SampleHandler.swift file.
Replace Sample handler class inheritance from RPBroadcastSampleHandler to EyesonScreencastHandler and leave the rest of the class empty.
import EyesonSdk_Screencast
class SampleHandler: EyesonScreencastHandler {}
Usage
- Call
meeting.screencast?.observe()
from your app. - Call
RPSystemBroadcastPickerView()
in your app to show the Broadcast Extension Menu. - As soon as the Broadcast Extension starts capturing, the stream will appear in the app.
- To stop screencast, the stop button needs to be pressed within any of the Broadcast Extension system interfaces.
Observe screencast state from broadcast upload extension
meeting.screencast.observe() { isActive in
// called when broadcast extension has switched its state
}
Set self as presenter
Set the parameter to true
to enable presenter mode for the current user, or false
to disable it.
meeting.setPresenter(true)