Comments (11)
fullVideoAspectRatio={"16:9"}
videoAspectRatio={"16:9"}
自己设置宽高比
from react-native-yz-vlcplayer.
fullVideoAspectRatio={"16:9"}
videoAspectRatio={"16:9"}
经过详细测试,设置后并未生效。
ios 表现为
设置为9:16反而正常了。
但是在安卓上没有生效,表现为:进来的一瞬间是正常的,但是一闪而过后又上下有黑边了。
from react-native-yz-vlcplayer.
这样子么,我到时看看吧
from react-native-yz-vlcplayer.
import {StyleSheet, View, Dimensions} from 'react-native';
import Orientation from 'react-native-orientation';
const height = Dimensions.get('window').height;
const width = Dimensions.get('window').width;
fullVideoAspectRatio={ width + ":" + height}
安卓你可以先用全屏的宽高比
from react-native-yz-vlcplayer.
使用1.1.1-beta7版本,
使用参数autoAspectRatio={true}
只作用于Android
from react-native-yz-vlcplayer.
使用1.1.1-beta7版本,
使用参数autoAspectRatio={true}
只作用于Android
还是不理想,现在加上这个参数后,视频画面感觉是被强制拉伸的,是否可以参考下react-native-video的:posterResizeMode和resizeMode这种方式? 我记得react-native-video是没有这个问题的。可惜ios 版得不支持 flv。
from react-native-yz-vlcplayer.
呃。。。。我把视频宽度调成"120%",居然就解决了这个问题了。。。。
只是这样还会引起其他问题,所以还是希望这个库能把这个问题彻底解决了
from react-native-yz-vlcplayer.
楼主是想拉伸铺满?还是等比自适应?另外,请问一下楼主你做这个直播,视频源是rtsp么?
from react-native-yz-vlcplayer.
楼主是想拉伸铺满?还是等比自适应?另外,请问一下楼主你做这个直播,视频源是rtsp么?
我想拉伸铺满,现在是把宽度调成120%解决了。
视频源是flv
from react-native-yz-vlcplayer.
还没想好怎么弄,我不做直播
from react-native-yz-vlcplayer.
楼主是想拉伸铺满?还是等比自适应?另外,请问一下楼主你做这个直播,视频源是rtsp么?
我想拉伸铺满,现在是把宽度调成120%解决了。
视频源是flv
你的意思是 超出屏幕的部分不显示?只要不出现黑边就行呗?
from react-native-yz-vlcplayer.
Related Issues (20)
- IP camera Feed HOT 2
- 全屏时,导航栏和播放器一起出现
- RTSP IP camera video stop after a few seconds HOT 2
- VLCPlayer not working for android 5 , API level 22 HOT 1
- ios报错 HOT 1
- It work with google cast ? HOT 1
- 1 duplicate symbol for architecture arm64(ios构建报错) HOT 3
- HLS Streaming stop playing with onEnd event after some seconds HOT 1
- 截屏没有用,调用了snapshot 实际上没有存在本地
- android build issue (RN 0.61.4)
- rtsp播放问题 HOT 1
- Component 'RCTVideo' re-registered bubbling event 'topVideoLoadStart' as a direct event HOT 2
- Support for RN62.0 HOT 2
- 'MobileVLCKit/MobileVLCKit.h' file not found
- Failed to upgrade to 'com.yyl.vlc:vlc-android-sdk:3.3.0' HOT 1
- RTSP播放延迟
- RCTVLCplayer was not found in the uimanager
- rtsp无法播放
- help me thanks 救救我 谢谢
- How to add image thumbnail to video player
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-yz-vlcplayer.