feat: Add local Docker test environment setup with PowerShell script and Docker Compose.

This commit is contained in:
Michael committed 2025-12-15 20:56:17 +01:00
1 parent 435cdb46ed
commit b39dd97e5a
8 files changed
+141 -27

No files matched your search

@@ -30,6 +30,7 @@ class PlayerScreen extends ConsumerStatefulWidget {
final String containerExtension;
final List<Channel>? channels;
final double? startTime;
final Duration? duration;
const PlayerScreen({
super.key,
@@ -40,6 +41,7 @@ class PlayerScreen extends ConsumerStatefulWidget {
this.containerExtension = 'mp4',
this.channels,
this.startTime,
this.duration,
});
@override
@@ -133,6 +135,10 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
if (startTimeOverride != null) {
playerSrc += '&t=$startTimeOverride';
}
if (widget.duration != null) {
playerSrc += '&duration=${widget.duration!.inSeconds}';
}
// Register View Factory (Only needed for Standard Player, but safe to do always or conditionally)
ui_web.platformViewRegistry.registerViewFactory(_viewId, (int viewId) {
@@ -280,6 +280,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
playlist: widget.playlist,
streamType: StreamType.series,
containerExtension: episode.containerExtension ?? 'mkv',
duration: episode.durationSecs != null ? Duration(seconds: episode.durationSecs!) : null,
),
),
);