customBinarySearch

fun customBinarySearch(positionMs: Long, thumbnails: List<WebVTTThumbnailMetadata>): Int

Searches, using the binary search algorithm, the collection of WebVTTThumbnailMetadata objects to find a thumbnail URL that matches a given time position in a stream.

Parameters

positionMs

The time position in a stream (in milliseconds)

thumbnails

The collection of WebVTTThumbnailMetadata objects.