lib / tv.smartclip.smartclientandroid.lib.video_player / InstreamExoWrapper / <init>

<init>

InstreamExoWrapper(playerView: PlayerView, contentUrl: String, player: ExoPlayer = createDefaultPlayer(playerView.context), playerHolder: IExoHolder = ExoHolder(playerView, player), videoLoader: IExoVideoLoader = ExoVideoLoader(playerHolder), videoSwitcher: IExoVideoSwitcher = ExoVideoSwitcher(playerHolder))

Creates new InstreamExoWrapper that uses the provided playerView for playback of the content video provided via the contentUrl. It is required that this PlayerView is placed in a ConstraintLayout.

Optionally allows to change the used ExoPlayer (player) or key functionalities like the loading of any video (videoLoader) or the switch from content to advertising video and/or back (videoSwitcher). If desired it is also possible to overwrite nearly every important method.

InstreamExoWrapper(contentUrl: String, playerHolder: IExoHolder, videoLoader: IExoVideoLoader = ExoVideoLoader(playerHolder), videoSwitcher: IExoVideoSwitcher = ExoVideoSwitcher(playerHolder))

Implements the SxInstreamVideoPlayerWrapper for the SimpleExoPlayer.