File tree 1 file changed +3
-9
lines changed
packages/video_player/video_player_web/lib/src
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -232,19 +232,13 @@ class VideoPlayer {
232
232
233
233
void _resetOptions () {
234
234
_videoElement.controls = false ;
235
- if (_videoElement.hasAttribute ('controlsList' )) {
236
- _videoElement.setAttribute ('controlsList' , '' );
237
- }
238
- if (_videoElement.hasAttribute ('disablePictureInPicture' )) {
239
- _videoElement.setAttribute ('disablePictureInPicture' , false );
240
- }
235
+ _videoElement.removeAttribute ('controlsList' );
236
+ _videoElement.removeAttribute ('disablePictureInPicture' );
241
237
if (_onContextMenu != null ) {
242
238
_videoElement.removeEventListener ('contextmenu' , _onContextMenu);
243
239
_onContextMenu = null ;
244
240
}
245
- if (_videoElement.hasAttribute ('disableRemotePlayback' )) {
246
- _videoElement.setAttribute ('disableRemotePlayback' , false );
247
- }
241
+ _videoElement.removeAttribute ('disableRemotePlayback' );
248
242
}
249
243
250
244
/// Disposes of the current [html.VideoElement] .
You can’t perform that action at this time.
0 commit comments