cast

@JvmStatic
fun cast(castOptions: CastOptions, onLoad: (MediaLoadRequestData.Builder) -> MediaLoadRequestData.Builder? = null)

Cast content to receiver, and setup mini controller. This function will not cast the content if already casted.

Parameters

onLoad

a lambda function let developer configure their parameters to the builder, such as setCurrentTime(), then return it to load.


@JvmStatic
fun cast(list: List<CastOptions>, startIndex: Int = 0, onLoad: (MediaLoadRequestData.Builder) -> MediaLoadRequestData.Builder? = null)

Cast multiple contents to receiver at once. This function will not cast the start content if already casted or invalided index.

Parameters

onLoad

a lambda function let developer configure their parameters to the builder, such as setCurrentTime(), then return it to load.