瀏覽代碼

VLCPlaybackController: Add aspect ratio for crop fill for iPhone 4

(cherry picked from commit bf6563953256bba9fb252e9e8bca3ded86ed9c78)
Carola Nitz 7 年之前
父節點
當前提交
7dc66c6d61
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Sources/VLCPlaybackController.m

+ 2 - 0
Sources/VLCPlaybackController.m

@@ -759,6 +759,8 @@ VLCMediaDelegate>
                 _mediaPlayer.videoAspectRatio = "4:3";
             } else if (f_ar == .5625) {// AirPlay
                 _mediaPlayer.videoAspectRatio = "16:9";
+            } else if (f_ar == 1.5) { //iPhone 4
+                _mediaPlayer.videoAspectRatio = "3:2";
             } else
                 APLog(@"unknown screen format %f, can't crop", f_ar);
         } else {