configureBookmarksHeartBeatTask

fun ComposablePlayer.configureBookmarksHeartBeatTask(assetID: String, bookmarksService: BookmarksService, 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 periodically updates bookmark's the "watched until" time duration to Head-End Service.

Parameters

assetID

identifier for the playback asset.

bookmarksService
bookmarkSyncIntervalMs

time interval, in milliseconds, to sync a bookmark.

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].

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