findCaptionsForPosition

open fun findCaptionsForPosition(position: Long): ArrayList<LinearLayout>

Retrieves the specific view block containing rendered captions for the given video position in milliseconds, if one exists. If there are no captions at the given position, null is returned.

Return

a ViewGroup containing the rendered captions, or null if there are no captions at the given video position

Parameters

position

the video position in milliseconds


open fun findCaptionsForPosition(position: Int): ArrayList<LinearLayout>

Deprecated

Deprecated

Use {findCaptionsForPosition} instead.