smartPlay

open fun smartPlay(@NonNull context: Context, @NonNull video: Any, @NonNull position: Long): Boolean

Method to invoke "smart play" of a video stream. The method checks the users device preferences and invokes playback on local phone/tablet device or TV device or offers a choice to the user to select a TV device.

The logic of how this choice is made is based on considerations like whether TV devices are available to the user and whether the user has already been offered the option to play videos on a TV in this session.

This method should be called by the video app where normally the start video method is called within the app.

Return

boolean indicating whether the Vizbee SDK will initiate playback to a screen device. When false, invoke local playback normally.

Deprecated

Please refer to @@link #smartPlay(Context, VizbeeRequest, SmartPlayOptions)

Parameters

context

Activity context where video playback is started

video

Video to be played

position

Video position to start from


open fun smartPlay(@NonNull context: Context, @NonNull request: VizbeeRequest)

Parameters

context

Activity context from where the play button is triggered

request

Request object that contains the video details


open fun smartPlay(@NonNull context: Context, @NonNull request: VizbeeRequest, @NonNull options: SmartPlayOptions)

Parameters

context

Activity context from where the play button is triggered

request

Request object that contains the video details

options

Play options which determines weather the display the card