2017-01-19 2 views
0

YouTubePlayerViewで視聴している問題があります。それは、フルスクリーンを水平に表示していません。左右に2本の縦の黒い棒があります。あなたは添付の画像で見ることができます。どうすればこれらのバーを削除できますか?YouTube動画を再生しているときに、左右に縦の黒いバーが2つあります。この棒を取り除くには?

<com.ecomapps.tubeplay.widget.AspectRatioView 
     android:id="@+id/ignored_view" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:orientation="vertical" 
     app:aspectRatio="1.90"> 

     <com.google.android.youtube.player.YouTubePlayerView 
      android:id="@+id/youtube_view" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:adjustViewBounds="true" /> 

    </com.ecomapps.tubeplay.widget.AspectRatioView> 

This is my image and you can see the black vertical bars to left and right side. How can I remove this?

答えて

1

アプリを設定com.ecomapps.tubeplay.widget.AspectRatioView

+0

を削除:アスペクト比= "1.90" ので、このアスペクト比及び添加黒バーに採用図です。 ビデオのアスペクト比と画面のアスペクト比が異なる場合、どのようにビデオを表示する必要がありますか? –

関連する問題