mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
feat: Added playbackinformation to native player ui
This commit is contained in:
parent
37496f87e3
commit
25304d0a5b
14 changed files with 266 additions and 50 deletions
|
|
@ -27,6 +27,22 @@ class SimpleItemModel {
|
|||
});
|
||||
}
|
||||
|
||||
enum PlaybackType {
|
||||
direct,
|
||||
transcoded,
|
||||
offline,
|
||||
}
|
||||
|
||||
class MediaInfo {
|
||||
final PlaybackType playbackType;
|
||||
final String videoInformation;
|
||||
|
||||
const MediaInfo({
|
||||
required this.playbackType,
|
||||
required this.videoInformation,
|
||||
});
|
||||
}
|
||||
|
||||
class PlayableData {
|
||||
final SimpleItemModel currentItem;
|
||||
final String description;
|
||||
|
|
@ -40,6 +56,7 @@ class PlayableData {
|
|||
final List<MediaSegment> segments;
|
||||
final SimpleItemModel? previousVideo;
|
||||
final SimpleItemModel? nextVideo;
|
||||
final MediaInfo mediaInfo;
|
||||
final String url;
|
||||
|
||||
PlayableData({
|
||||
|
|
@ -55,6 +72,7 @@ class PlayableData {
|
|||
this.segments = const [],
|
||||
this.previousVideo,
|
||||
this.nextVideo,
|
||||
required this.mediaInfo,
|
||||
required this.url,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue