File tree 1 file changed +29
-20
lines changed
1 file changed +29
-20
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ import VideoToolbar from './VideoToolbar';
9
9
import MouseMoveCapture from './VideoMouseMoveCapture' ;
10
10
import Player from '../Player' ;
11
11
12
+ // Overlays over the video (even tiny in the corner like ours) violate TOS,
13
+ // so we can not show them. Toggling it off with a conditional for now until
14
+ // we find a good place for the fullscreen control (if we do).
15
+ const OVERLAY_ALLOWED = false ;
16
+
12
17
const {
13
18
useCallback,
14
19
useEffect,
@@ -110,26 +115,30 @@ function Video(props) {
110
115
seek = { seek }
111
116
/>
112
117
113
- { isFullscreen && (
114
- < MouseMoveCapture
115
- active = { shouldShowToolbar }
116
- onMouseMove = { handleMouseMove }
117
- />
118
- ) }
119
- { isFullscreen && (
120
- < VideoProgressBar
121
- media = { media }
122
- seek = { seek }
123
- />
124
- ) }
125
- { ( ! isFullscreen || shouldShowToolbar ) && (
126
- < VideoToolbar
127
- isFullscreen = { isFullscreen }
128
- onFullscreenEnter = { handleRequestFullscreenEnter }
129
- onFullscreenExit = { onFullscreenExit }
130
- >
131
- < MediaSourceTools media = { media } />
132
- </ VideoToolbar >
118
+ { OVERLAY_ALLOWED && (
119
+ < >
120
+ { isFullscreen && (
121
+ < MouseMoveCapture
122
+ active = { shouldShowToolbar }
123
+ onMouseMove = { handleMouseMove }
124
+ />
125
+ ) }
126
+ { isFullscreen && (
127
+ < VideoProgressBar
128
+ media = { media }
129
+ seek = { seek }
130
+ />
131
+ ) }
132
+ { ( ! isFullscreen || shouldShowToolbar ) && (
133
+ < VideoToolbar
134
+ isFullscreen = { isFullscreen }
135
+ onFullscreenEnter = { handleRequestFullscreenEnter }
136
+ onFullscreenExit = { onFullscreenExit }
137
+ >
138
+ < MediaSourceTools media = { media } />
139
+ </ VideoToolbar >
140
+ ) }
141
+ </ >
133
142
) }
134
143
</ div >
135
144
) ;
You can’t perform that action at this time.
0 commit comments