feat: Implement next-up screen for native player (#533)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-10-15 18:05:51 +02:00 committed by GitHub
parent 311b647286
commit 29b1c2e633
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 782 additions and 203 deletions

View file

@ -100,15 +100,12 @@ class NativePlayer extends BasePlayer implements VideoPlayerListenerCallback {
Duration startPosition,
) async {
final playableData = PlayableData(
id: model.item.id,
title: model.item.title,
subTitle: context != null ? model.item.label(context) : "",
logoUrl: model.item.getPosters?.logo?.path,
currentItem: model.item.toSimpleItem(context),
startPosition: startPosition.inMilliseconds,
description: model.item.overview.summary,
defaultAudioTrack: model.mediaStreams?.defaultAudioStreamIndex ?? 1,
nextVideo: model.nextVideo?.name,
previousVideo: model.previousVideo?.name,
nextVideo: model.nextVideo?.toSimpleItem(context),
previousVideo: model.previousVideo?.toSimpleItem(context),
audioTracks: model.audioStreams
?.map(
(audio) => AudioTrack(