fix: select first playable Plex Part instead of always Part[0]

close #1201
This commit is contained in:
edde746
2026-05-30 21:37:01 +02:00
parent f5012b36ea
commit 9825ce3c7c
8 changed files with 182 additions and 22 deletions
@@ -12,11 +12,17 @@ class PlexVideoPlaybackData {
final List<MediaMarker> markers;
final int selectedMediaIndex;
final int selectedPartIndex;
PlexVideoPlaybackData({
required this.videoUrl,
required this.mediaInfo,
required this.availableVersions,
this.markers = const [],
this.selectedMediaIndex = 0,
this.selectedPartIndex = 0,
});
bool get hasValidVideoUrl => videoUrl != null && videoUrl!.isNotEmpty;