chewie icon indicating copy to clipboard operation
chewie copied to clipboard

This will allow us to handle the video rotation, as currently getting flipped videos

Open fisforfaheem opened this issue 1 year ago • 5 comments

fisforfaheem avatar Oct 10 '23 19:10 fisforfaheem

@fisforfaheem I need more context in terms of this change.

In other words, what is this attempting to solve versus what's already available? Chewie supports setting one or more system orientations that can be applied to the video player and when you exit out of it.

diegotori avatar Oct 16 '23 03:10 diegotori

I was working on a project and the video I was getting as output in the player was flipped .. If I record it in flipped...horizontal states etc... adding this..( after some improvements may help other as well) Onemob mobile app is one example

fisforfaheem avatar Nov 04 '23 19:11 fisforfaheem

@fisforfaheem if this is happening on Android, then please raise an issue with the Flutter team related to video_player.

Keep in mind that this library is merely a UI wrapper around VideoPlayer. If the issue is happening there, then it's on the Flutter team to address so that we don't prematurely attempt to rotate the video if there's no need to do so.

I'm not a big fan of trying to apply another Transform on top of the one that VideoPlayer applies based on the rotation correction values that it receives from the platform when playing back a video.

diegotori avatar Nov 27 '23 06:11 diegotori

Sure got your point

On Mon, Nov 27, 2023, 11:20 AM Diego Tori @.***> wrote:

@fisforfaheem https://github.com/fisforfaheem if this is happening on Android, then please raise an issue with the Flutter team related to video_player.

Keep in mind that this library is merely a UI wrapper around VideoPlayer. If the issue is happening there, then it's on the Flutter team to address so that we don't prematurely attempt to rotate the video if there's no need to do so.

I'm not a big fan of trying to apply another Transform on top of the one that VideoPlayer applies based on the rotation correction values that it receives from the platform when playing back a video.

— Reply to this email directly, view it on GitHub https://github.com/fluttercommunity/chewie/pull/784#issuecomment-1827188776, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRXJSBQXRNYITYB3FCAWY3YGQWKNAVCNFSM6AAAAAA522SBHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRXGE4DQNZXGY . You are receiving this because you were mentioned.Message ID: @.***>

fisforfaheem avatar Nov 27 '23 08:11 fisforfaheem

As of version 1.7.3, which I just published today, this PR may not be needed anymore.

In other words, we now use a LayoutBuilder to build Chewie's player. As a result, you can rotate it like so:

RotatedBox(
  quarterTurns: 1,
  child: Chewie(
    controller: _chewieController!,
  ),
)

diegotori avatar Nov 28 '23 15:11 diegotori

I'm going to close this PR since this is no longer needed due to it being addressed in version 1.7.5.

diegotori avatar Apr 07 '24 01:04 diegotori

Ok

On Sun, Apr 7, 2024 at 6:15 AM Diego Tori @.***> wrote:

I'm going to close this PR since this is no longer needed due to it being addressed in version 1.7.5.

— Reply to this email directly, view it on GitHub https://github.com/fluttercommunity/chewie/pull/784#issuecomment-2041261445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRXJSEIGYUGNVJ7VBJKRE3Y4CM27AVCNFSM6AAAAAA522SBHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGI3DCNBUGU . You are receiving this because you were mentioned.Message ID: @.***>

fisforfaheem avatar Apr 08 '24 16:04 fisforfaheem