blacky99
blacky99

Reputation: 165

Exoplayer load frame when seekbar change

I'm using Exoplayer to play a locally saved video.

I noticed that when you move the seekbar the video changes only when it is released. Is there a way to load the video frame with every move of the seekbar?

Upvotes: 2

Views: 1802

Answers (1)

Mick
Mick

Reputation: 25491

The thumbnails you see when you seek a video timeline are actually usually contained in a separate media stream or 'track'.

This is created on the server side and delivered as part of the streamed video, or in your case the locally saved video file, as a track in the video container.

The client downloads (or uploads from s saved file) this track and when a user seeks, it displays the thumbnail image that is closest to the time the user is seeking to.

Generating the thumbnails on the fly is possible but it does require the video to be loaded, decoded and a frame displayed at the point the user was seeking to.

This is quite a bit of work to do in the time available so is not usually a practical approach.

Upvotes: 1

Related Questions