configureBookmarksStateChangeTask

fun ComposablePlayer.configureBookmarksStateChangeTask(assetID: String, bookmarksService: BookmarksService, 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 updates (bookmarks) the "watched until" time duration to Bookmark Microservice on playback resume, pause, and stop (if the content is not watched till the end).

Parameters

assetID

identifier for th playback asset.

bookmarksService
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).