VideoTileControllerFacade
@objc
public protocol VideoTileControllerFacade
VideoTileControllerFacade
allows one to control VideoTile
. The caller is responsible for laying
out video render views as desired and binding tile ids received from the observer
in the videoTileDidAdd
and videoTileDidRemove
callbacks.
-
Binds the video rendering view to Video Tile. The view will start displaying the video frame after the completion of this API
Declaration
Swift
func bindVideoView(videoView: VideoRenderView, tileId: Int)
Parameters
videoView
View to render the video. Application needs to create it and pass to SDK.
tileId
id of the tile which was passed to the application in
VideoTileObserver.videoTileDidAdd
-
Unbinds the video rendering view from Video Tile. The view will stop displaying the video frame after the completion of this API
Declaration
Swift
func unbindVideoView(tileId: Int)
Parameters
tileId
id of the tile which was passed to the application in
VideoTileObserver.videoTileDidRemove
-
Subscribe to Video Tile events with an
VideoTileObserver
.Declaration
Swift
func addVideoTileObserver(observer: VideoTileObserver)
Parameters
observer
The observer to subscribe to events with
-
Unsubscribes from Video Tile events by removing specified
VideoTileObserver
.Declaration
Swift
func removeVideoTileObserver(observer: VideoTileObserver)
Parameters
observer
The observer to unsubscribe from events with
-
Pauses remote video tile, if it exists.
Declaration
Swift
func pauseRemoteVideoTile(tileId: Int)
Parameters
tileId
The tile id to pause
-
Resume remote video tile, if it exists.
Declaration
Swift
func resumeRemoteVideoTile(tileId: Int)
Parameters
tileId
The tile id to resume