mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
feat: Implement next-up screen for native player (#533)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
311b647286
commit
29b1c2e633
25 changed files with 782 additions and 203 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue