Hi @malviya.software ,
Thanks for your query. I tested with following source config and am able to see thumbnail information as expected. Can you please check in BasicPlaybackKotlin or BasicPlaybackTVKotlin sample application and check if this works for you?
SourceConfig
val sourceURL = "https://bitmovin-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd"
var sourceConfig = SourceConfig(sourceURL, SourceType.Dash)
sourceConfig.thumbnailTrack = ThumbnailTrack("https://bitmovin-a.akamaihd.net/content/MI201109210084_1/thumbnails/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.vtt")
player.load(sourceConfig)
Checking thumbnails in TimeChanged event
private fun onTimeChanged(event: PlayerEvent.TimeChanged) {
var thumbnail = player.source?.getThumbnail(player.currentTime)
Log.d("BasicPlaybackTVKotlin", "onTimeChanged: currentTime=" + player.currentTime + ", thumbnail=" + thumbnail)
}
Get following logs
D/BasicPlaybackTVKotlin: onTimeChanged: currentTime=9.731, thumbnail=Thumbnail(start=5.0, end=10.0, x=120, y=0, width=120, height=67, uri=https://bitmovin-a.akamaihd.net/content/MI201109210084_1/thumbnails/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.jpg, text=f08e80da-bf1d-4e3d-8899-f0f6155f6efa.jpg#xywh=120,0,120,67)
D/BasicPlaybackTVKotlin: onTimeChanged: currentTime=9.933, thumbnail=Thumbnail(start=5.0, end=10.0, x=120, y=0, width=120, height=67, uri=https://bitmovin-a.akamaihd.net/content/MI201109210084_1/thumbnails/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.jpg, text=f08e80da-bf1d-4e3d-8899-f0f6155f6efa.jpg#xywh=120,0,120,67)
D/BasicPlaybackTVKotlin: onTimeChanged: currentTime=10.151, thumbnail=Thumbnail(start=10.0, end=15.0, x=240, y=0, width=120, height=67, uri=https://bitmovin-a.akamaihd.net/content/MI201109210084_1/thumbnails/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.jpg, text=f08e80da-bf1d-4e3d-8899-f0f6155f6efa.jpg#xywh=240,0,120,67)
D/BufferPoolAccessor2.0: bufferpool2 0xb4000078d29637d8 : 5(40960 size) total buffers - 5(40960 size) used buffers - 1/7 (recycle/alloc) - 6/507 (fetch/transfer)
D/BasicPlaybackTVKotlin: onTimeChanged: currentTime=10.359, thumbnail=Thumbnail(start=10.0, end=15.0, x=240, y=0, width=120, height=67, uri=https://bitmovin-a.akamaihd.net/content/MI201109210084_1/thumbnails/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.jpg, text=f08e80da-bf1d-4e3d-8899-f0f6155f6efa.jpg#xywh=240,0,120,67)