TheWidlarzGroup/react-native-video

[BUG]: `resizeMode` prop is not implemented on web

オープン

#4,297 opened on 2024/11/21

 (7 件のコメント) (2 件のリアクション) (0 人の担当者)Kotlin (3,027 件のフォーク)batch import
AcceptedMissing ReproNewer Version AvailablePlatform: WebV6bugdifficulty: easygood first issuetriaged

Repository metrics

Stars
 (7,677 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

  1. Set resizeMode to "cover" on a Video component.
  2. Run the app on web and observe the video in a browser.
  3. Notice that the video does not respect the resizeMode value.

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

コントリビューターガイド