@@ -169,9 +169,11 @@ export default function MainVideoUI({ video, videoBlobUrl }: Props) {
169169 const video = Object . assign ( document . createElement ( "video" ) , {
170170 muted : true ,
171171 autoplay : true ,
172+ playsInline : true ,
172173 src : videoBlobUrl
173174 } ) ;
174175 video . classList . add ( "hideVideo" ) ; // Let's make this video invisible to the user
176+ console . log ( video )
175177 video . addEventListener ( "playing" , ( ) => {
176178 /**
177179 * Getting video framerate is unreliable in JavaScript.
@@ -215,12 +217,12 @@ export default function MainVideoUI({ video, videoBlobUrl }: Props) {
215217 < Card >
216218 < div className = "flex mainFlex gap" >
217219 < div style = { { flex : "2 0" } } key = { "VideoPreviewStable" } >
218- < Card secondLevel = { true } >
220+ < Card fullWidth = { true } secondLevel = { true } >
219221 < h2 > { lang ( "Video preview:" ) } </ h2 >
220222 < div className = "flex wcenter" >
221- < video onPlay = { ( ) => updateVideoPaused ( false ) } onPause = { ( ) => updateVideoPaused ( true ) } onSeeked = { ( ) => seekedPromise . current && seekedPromise . current ( ) } ref = { videoObj } controls autoPlay muted src = { videoBlobUrl } > </ video >
223+ < video playsInline = { true } onPlay = { ( ) => updateVideoPaused ( false ) } onPause = { ( ) => updateVideoPaused ( true ) } onSeeked = { ( ) => seekedPromise . current && seekedPromise . current ( ) } ref = { videoObj } controls autoPlay muted src = { videoBlobUrl } > </ video >
222224 </ div > < br > </ br >
223- < div className = "flex wcenter miniButton miniGap" key = { "VideoControls" } >
225+ < div className = "flex wcenter miniButton miniGap mainFlex mainMiniFlex " key = { "VideoControls" } style = { { overflow : "auto" } } >
224226 < ImageButton disabled = { areVideoControlsDisabled } img = "previousFrame" onClick = { ( ) => {
225227 if ( ! videoObj . current ) return ;
226228 videoObj . current . currentTime -= ( 1 / videoFrameRate ) ;
@@ -300,6 +302,7 @@ export default function MainVideoUI({ video, videoBlobUrl }: Props) {
300302 src : videoBlobUrl ,
301303 autoplay : true ,
302304 muted : true ,
305+ playsInline : true ,
303306 onload : ( ) => newVideo . play ( ) ,
304307 onplay : ( ) => {
305308 newVideo . pause ( ) ;
0 commit comments