From f920e1c665ac01df74740cd1700bb2ce8c36abfb Mon Sep 17 00:00:00 2001 From: Ujwal Basnet Date: Tue, 17 Dec 2024 13:41:05 +0545 Subject: [PATCH] fix: rotationCorrection bug fixes --- lib/src/video_player_mdk.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/video_player_mdk.dart b/lib/src/video_player_mdk.dart index f367efa..afa9a66 100644 --- a/lib/src/video_player_mdk.dart +++ b/lib/src/video_player_mdk.dart @@ -51,6 +51,7 @@ class MdkVideoPlayer extends mdk.Player { } streamCtl.add(VideoEvent( eventType: VideoEventType.initialized, + rotationCorrection: mediaInfo.video?.firstOrNull?.rotation, duration: Duration( microseconds: isLive // int max for live streams, duration.inMicroseconds == 9223372036854775807