playOnLocalDevice

abstract fun playOnLocalDevice(context: Context, video: Any, position: Long, shouldAutoPlay: Boolean)

Adapter method to play a video on local phone or tablet device. SmartPlay will default to this method when there are no TV devices nearby.

Parameters

context

Activity context

video

Host app's video object returned by getVideoInfoByGUID

position

Position at which the video should be resumed

shouldAutoPlay

Flag to specify whether local playback should automatically start; otherwise, video should be paused.