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
videoViewView to render the video. Application needs to create it and pass to SDK.
tileIdid 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
tileIdid 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
observerThe observer to subscribe to events with
-
Unsubscribes from Video Tile events by removing specified
VideoTileObserver.Declaration
Swift
func removeVideoTileObserver(observer: VideoTileObserver)Parameters
observerThe observer to unsubscribe from events with
-
Pauses remote video tile, if it exists.
Declaration
Swift
func pauseRemoteVideoTile(tileId: Int)Parameters
tileIdThe tile id to pause
-
Resume remote video tile, if it exists.
Declaration
Swift
func resumeRemoteVideoTile(tileId: Int)Parameters
tileIdThe tile id to resume