Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/src/models/pod_player_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class PodPlayerConfig {
final bool isLooping;
final bool forcedVideoFocus;
final bool wakelockEnabled;
final bool enableOverlay;

/// Initial video quality priority. The first available option will be used,
/// from start to the end of this list. If all options informed are not
Expand All @@ -16,6 +17,7 @@ class PodPlayerConfig {
this.isLooping = false,
this.forcedVideoFocus = false,
this.wakelockEnabled = true,
this.enableOverlay = true,
this.videoQualityPriority = const [1080, 720, 360],
});

Expand All @@ -24,6 +26,7 @@ class PodPlayerConfig {
bool? isLooping,
bool? forcedVideoFocus,
bool? wakelockEnabled,
bool? enableOverlay,
List<int>? videoQualityPriority,
}) {
return PodPlayerConfig(
Expand All @@ -32,6 +35,7 @@ class PodPlayerConfig {
forcedVideoFocus: forcedVideoFocus ?? this.forcedVideoFocus,
wakelockEnabled: wakelockEnabled ?? this.wakelockEnabled,
videoQualityPriority: videoQualityPriority ?? this.videoQualityPriority,
enableOverlay: enableOverlay ?? this.enableOverlay,
);
}
}
1 change: 1 addition & 0 deletions lib/src/widgets/core/overlays/mobile_overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class _MobileOverlay extends StatelessWidget {
child: podCtr.videoTitle ?? const SizedBox(),
),
),
if(podCtr.podPlayerConfig.enableOverlay)
MaterialIconButton(
toolTipMesg: podCtr.podPlayerLabels.settings,
color: itemColor,
Expand Down