We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1811e17 commit 96ff41cCopy full SHA for 96ff41c
lib/pages/player/player_controller.dart
@@ -84,10 +84,16 @@ abstract class _PlayerController with Store {
84
85
videoController = VideoController(
86
mediaPlayer,
87
- configuration: VideoControllerConfiguration(
88
- enableHardwareAcceleration: hAenable,
89
- androidAttachSurfaceAfterVideoParameters: false,
90
- ),
+ configuration: (Platform.isAndroid && hAenable)
+ ? const VideoControllerConfiguration(
+ vo: 'mediacodec_embed',
+ hwdec: 'mediacodec',
91
+ androidAttachSurfaceAfterVideoParameters: false,
92
+ )
93
+ : VideoControllerConfiguration(
94
+ enableHardwareAcceleration: hAenable,
95
96
+ ),
97
);
98
mediaPlayer.setPlaylistMode(PlaylistMode.none);
99
0 commit comments