fix: select first playable Plex Part instead of always Part[0]
close #1201
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user