Hello,
We have an AndroidTV app with Bitmovin player v3.24.1, which works fine.
Now we are trying to get thumbnails with the new API getThumbnail, but we cannot make it to work. The return value is allways NULL. We tried various public test streams, like:
https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8
Please advise.
Here is a code snippet:
private final EventListener<PlayerEvent.Seeked> onSeekedListener = seekedEvent -> {
Log.d(TAG, "Bitmovin Event onSeeked: " + seekedEvent);
double at = seekedEvent.getTimestamp();
Thumbnail thumbnail = null;
if (mPlayer != null) {
Source source = mPlayer.getSource();
if (source != null) {
thumbnail = source.getThumbnail(at);
}
}
if (thumbnail == null) {
Log.d(TAG, "getThumbnail: NONE");
} else {
Log.d(TAG, "getThumbnailt: " + thumbnail.toString());
}
};