Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在安卓下有bug,播放时的视频尺寸不对 #18

Closed
wulaizi opened this issue Nov 18, 2020 · 5 comments
Closed

在安卓下有bug,播放时的视频尺寸不对 #18

wulaizi opened this issue Nov 18, 2020 · 5 comments

Comments

@wulaizi
Copy link

wulaizi commented Nov 18, 2020

安卓加载时尺寸是对的,播放时尺寸就不对了
全屏时,视频是侧过来了,实际上视频的宽高并没有改变,导致了横过来时时依然是小屏幕播放,只是横着的

@A-ANing
Copy link
Owner

A-ANing commented Nov 18, 2020

视频尺寸问题

是这个问题吗

@wulaizi
Copy link
Author

wulaizi commented Nov 18, 2020

47219286E2270E34C47528BDF2B70064

@A-ANing
Copy link
Owner

A-ANing commented Nov 18, 2020

在你项目的settings.gradle里添加

include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer')

image

@wulaizi
Copy link
Author

wulaizi commented Nov 18, 2020

能看到图片吗?可能需要修改下hosts

在你项目的settings.gradle里添加

include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer')

图片

非常感谢,解决了

@A-ANing
Copy link
Owner

A-ANing commented Nov 18, 2020

下次有空升级到视频依赖包修复视频尺寸的版本,先关闭

@A-ANing A-ANing closed this as completed Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants