正在上传图片(0/1)

视频流显示相关

 0
手机看帖 0 701
我在使用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" />





评论
上传
你需要登录之后才能回帖    登录 | 注册
收藏 点赞 评论
分享至:
回复:
上传
取消 评论
快速回复 返回顶部 返回列表