WIP: test #8

Draft
loewy wants to merge 61 commits from async-queue-shaka into master
Showing only changes of commit 5b199b52b4 - Show all commits

View File

@@ -230,17 +230,19 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
onVolumeChange?.({volume: nativeRef.current.volume}); onVolumeChange?.({volume: nativeRef.current.volume});
}} }}
onEnded={onEnd} onEnded={onEnd}
style={{ style={videoStyle}
/>
);
},
);
const videoStyle = {
position: 'absolute', position: 'absolute',
inset: 0, inset: 0,
objectFit: 'contain', objectFit: 'contain',
width: '100%', width: '100%',
height: '100%', height: '100%',
}} } satisfies React.CSSProperties;
/>
);
},
);
const useMediaSession = ( const useMediaSession = (
metadata: VideoMetadata | undefined, metadata: VideoMetadata | undefined,