视频流显示相关
0
我在使用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" />
|
|
|
|