提交 d9e82c56 编写于 作者: G guoshuyu

update with pixelWidthHeightRatio for exo2

上级 873de027
......@@ -740,9 +740,9 @@ public class IjkExo2MediaPlayer extends AbstractMediaPlayer implements Player.Ev
@Override
public void onVideoSizeChanged(EventTime eventTime, int width, int height, int unappliedRotationDegrees, float pixelWidthHeightRatio) {
mVideoWidth = width;
mVideoWidth = (int) (width * pixelWidthHeightRatio);
mVideoHeight = height;
notifyOnVideoSizeChanged(width, height, 1, 1);
notifyOnVideoSizeChanged((int) (width * pixelWidthHeightRatio), height, 1, 1);
if (unappliedRotationDegrees > 0)
notifyOnInfo(IMediaPlayer.MEDIA_INFO_VIDEO_ROTATION_CHANGED, unappliedRotationDegrees);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册