Git Product home page Git Product logo

Comments (11)

xuyuanzhou avatar xuyuanzhou commented on August 31, 2024

fullVideoAspectRatio={"16:9"}
videoAspectRatio={"16:9"}
自己设置宽高比

from react-native-yz-vlcplayer.

yunuo-tech avatar yunuo-tech commented on August 31, 2024

fullVideoAspectRatio={"16:9"}
videoAspectRatio={"16:9"}

经过详细测试,设置后并未生效。
ios 表现为
image
设置为9:16反而正常了。
但是在安卓上没有生效,表现为:进来的一瞬间是正常的,但是一闪而过后又上下有黑边了。

from react-native-yz-vlcplayer.

xuyuanzhou avatar xuyuanzhou commented on August 31, 2024

这样子么,我到时看看吧

from react-native-yz-vlcplayer.

xuyuanzhou avatar xuyuanzhou commented on August 31, 2024

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.

xuyuanzhou avatar xuyuanzhou commented on August 31, 2024

使用1.1.1-beta7版本,
使用参数autoAspectRatio={true}
只作用于Android

from react-native-yz-vlcplayer.

yunuo-tech avatar yunuo-tech commented on August 31, 2024

使用1.1.1-beta7版本,
使用参数autoAspectRatio={true}
只作用于Android

还是不理想,现在加上这个参数后,视频画面感觉是被强制拉伸的,是否可以参考下react-native-video的:posterResizeMode和resizeMode这种方式? 我记得react-native-video是没有这个问题的。可惜ios 版得不支持 flv。

另外 我手机是刘海屏 比例调成18:9也不行。
image

from react-native-yz-vlcplayer.

yunuo-tech avatar yunuo-tech commented on August 31, 2024

呃。。。。我把视频宽度调成"120%",居然就解决了这个问题了。。。。
只是这样还会引起其他问题,所以还是希望这个库能把这个问题彻底解决了

from react-native-yz-vlcplayer.

tzraeq avatar tzraeq commented on August 31, 2024

楼主是想拉伸铺满?还是等比自适应?另外,请问一下楼主你做这个直播,视频源是rtsp么?

from react-native-yz-vlcplayer.

yunuo-tech avatar yunuo-tech commented on August 31, 2024

楼主是想拉伸铺满?还是等比自适应?另外,请问一下楼主你做这个直播,视频源是rtsp么?

我想拉伸铺满,现在是把宽度调成120%解决了。
视频源是flv

from react-native-yz-vlcplayer.

xuyuanzhou avatar xuyuanzhou commented on August 31, 2024

还没想好怎么弄,我不做直播

from react-native-yz-vlcplayer.

tzraeq avatar tzraeq commented on August 31, 2024

楼主是想拉伸铺满?还是等比自适应?另外,请问一下楼主你做这个直播,视频源是rtsp么?

我想拉伸铺满,现在是把宽度调成120%解决了。
视频源是flv

你的意思是 超出屏幕的部分不显示?只要不出现黑边就行呗?

from react-native-yz-vlcplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.