TheWidlarzGroup/react-native-video
Auf GitHub ansehen[BUG]: `resizeMode` prop is not implemented on web
Open
#4.297 geöffnet am 21. Nov. 2024
AcceptedMissing ReproNewer Version AvailablePlatform: WebV6bugdifficulty: easygood first issuepriority: lowtriaged
Repository-Metriken
- Stars
- (7.677 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 2T 3h) (11 gemergte PRs in 30 T)
Beschreibung
What happened?
The object-fit style property of the video element in Video.web.tsx should respect the resizeMode prop.
Currently the resizeMode prop is not implemented on web, so setting it (e.g. to "cover") has no effect on how the video is displayed.
Steps to reproduce
- Set
resizeModeto"cover"on aVideocomponent. - Run the app on web and observe the video in a browser.
- Notice that the video does not respect the
resizeModevalue.
Reproduction repository
No response
react-native-video version
6.8.0
react-native version
No response
react-native-nitro-modules version
No response
Platforms
Web
OS version
Chrome
Device
Real device
Architecture
Old Architecture
Expo
No response
Last working version
No response
Media / source type
No response