mirror of
				https://github.com/videojs/video.js.git
				synced 2025-10-31 00:08:01 +02:00 
			
		
		
		
	fix(fs): don't set player element css props on native fullscreen (#6673)
Fixes #6640
This commit is contained in:
		| @@ -113,12 +113,13 @@ body.vjs-full-window { | ||||
|   bottom: 0; | ||||
|   right: 0; | ||||
| } | ||||
| .video-js.vjs-fullscreen { | ||||
| .video-js.vjs-fullscreen:not(.vjs-ios-native-fs) { | ||||
|   width: 100% !important; | ||||
|   height: 100% !important; | ||||
|   // Undo any aspect ratio padding for fluid layouts | ||||
|   padding-top: 0 !important; | ||||
| } | ||||
|  | ||||
| .video-js.vjs-fullscreen.vjs-user-inactive { | ||||
|   cursor: none; | ||||
| } | ||||
|   | ||||
| @@ -2077,6 +2077,9 @@ class Player extends Component { | ||||
|    */ | ||||
|   handleTechFullscreenChange_(event, data) { | ||||
|     if (data) { | ||||
|       if (data.nativeIOSFullscreen) { | ||||
|         this.toggleClass('vjs-ios-native-fs'); | ||||
|       } | ||||
|       this.isFullscreen(data.isFullscreen); | ||||
|     } | ||||
|   } | ||||
|   | ||||
| @@ -626,7 +626,11 @@ class Html5 extends Tech { | ||||
|         this.el_.webkitPresentationMode !== 'picture-in-picture') { | ||||
|         this.one('webkitendfullscreen', endFn); | ||||
|  | ||||
|         this.trigger('fullscreenchange', { isFullscreen: true }); | ||||
|         this.trigger('fullscreenchange', { | ||||
|           isFullscreen: true, | ||||
|           // set a flag in case another tech triggers fullscreenchange | ||||
|           nativeIOSFullscreen: true | ||||
|         }); | ||||
|       } | ||||
|     }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user