pod_player icon indicating copy to clipboard operation
pod_player copied to clipboard

Add support for vertical videos

Open Javierd opened this issue 3 years ago • 1 comments

Currently, if you try to play a vertical video (such as a short) the thumbail gets distorted to show the video as a 16:9 video. If you try to play the video on full screen mode it'll play the vertical video horizontally, leaving huge side black borders

Javierd avatar Aug 09 '22 15:08 Javierd

It is possible to play vertical videos or any other videos that differ from a 16:9 aspect ratio by using the videoAspectRatio and matchFrameAspectRatioToVideo parameters like this:

PodVideoPlayer(
      controller: _podPlayerController,
      videoAspectRatio: _podPlayerController.videoPlayerValue!.aspectRatio,
      matchFrameAspectRatioToVideo: true,
)

VinzentHubrich avatar Sep 07 '22 15:09 VinzentHubrich