大疆社区
标题:
视频流显示相关
[打印本页]
作者:
liangS
时间:
2021-3-22
标题:
视频流显示相关
我在使用textureview获取视频流显示的时候,图像有拉伸,但是DJIGo的并没有,我想知道该如何修改view的格式才能保证图像不被拉伸变形?这是我的图片,实际上是一个正方形50*50的停机坪,但是在实际显示中他的高>宽,我改如何修改?
我的view布局如下:
<
RelativeLayout
xmlns:
android
="http://schemas.android.com/apk/res/android"
xmlns:
app
="http://schemas.android.com/apk/res-auto"
xmlns:
tools
="http://schemas.android.com/tools"
android
:layout_width
="match_parent"
android
:layout_height
="match_parent"
android
:orientation
="vertical"
>
<
TextureView
android
:id
="@+id/livestream_preview_ttv"
android
:layout_width
="match_parent"
android
:layout_height
="match_parent"
android
:layout_gravity
="center"
android
:layout_centerHorizontal
="true"
/>
微信图片_20210322093710.png
(1.24 MB, 下载次数: 6)
下载附件
保存到相册
2021-3-22 上传
欢迎光临 大疆社区 (https://bbs.dji.com/)
Powered by Discuz! X3.2