configureBookmarksTasks

fun ComposablePlayer.configureBookmarksTasks(bookmarksService: BookmarksService, assetID: String, bookmarkSyncIntervalMs: Long = DEFAULT_BOOKMARK_SYNC_INTERVAL_MILLIS, bookmarkDeleteThreshold: Float = DEFAULT_BOOKMARK_DELETE_THRESHOLD, seasonId: String? = null, episodeId: String? = null, seasonNumber: Int? = null, episodeNumber: Int? = null, musicId: String? = null, mode: Mode? = null)

Deprecated

Use BookmarksFactory.createBookmarksManager instead.

ComposablePlayer extension function that aggregates all steps related to executing Bookmark Microservice call.

Parameters

bookmarksService
assetID

identifier for th playback asset.

bookmarkSyncIntervalMs

time interval, in milliseconds, to sync a bookmark. Default value is 10 seconds.

bookmarkDeleteThreshold

the threshold factor used to calculate the current asset's playback position which determines if the asset's bookmark should be purged from the Bookmark Microservice persistent store or not. Valid value should be in the range (0, 1]. Default value is 1.0F.

seasonId

The unique identifier of the content's season.

episodeId

The unique identifier of the content's episode.

musicId

The unique identifier of the content's musicvideo.

mode

Type of the content (series, episode, or musicvideo).