如何在adobe flex中旋转视频播放器中的视频

时间:2022-05-11 18:54:34

I am trying to rotate video in default video player in adobe flex by doing:

我试图通过以下方式在adobe flex中的默认视频播放器中旋转视频:

videoPlayer.videoDisplay.rotation = 90;

It rotates the video but does not change video width and height. It still displays with small width.

它会旋转视频,但不会更改视频宽度和高度。它仍然显示小宽度。

I tried changing video width like:

我尝试改变视频宽度,如:

videoPlayer.videoDisplay.width = 600;

But with no success.

但没有成功。

Is there any solution for that?

那有什么解决方案吗?

2 个解决方案

#1


1  

I think that the solution for that is to resize your VideoPlayer and then you can rotate the VideoPlayer.videoDisplay like this :

我认为解决方案是调整VideoPlayer的大小,然后你可以像这样旋转VideoPlayer.videoDisplay:

videoPlayer.width = 480;
videoPlayer.height = 270;
videoPlayer.videoDisplay.rotation = 90;

Hope that can help.

希望能有所帮助。

#2


1  

At the end i tried following and conclude with as a solved:

最后我尝试了以下结论并作为解决方案得出结论:

videoPlayer.scaleMode = "stretch";

It will take resize video with full width of the player.

它将调整播放器全宽度的视频大小。

#1


1  

I think that the solution for that is to resize your VideoPlayer and then you can rotate the VideoPlayer.videoDisplay like this :

我认为解决方案是调整VideoPlayer的大小,然后你可以像这样旋转VideoPlayer.videoDisplay:

videoPlayer.width = 480;
videoPlayer.height = 270;
videoPlayer.videoDisplay.rotation = 90;

Hope that can help.

希望能有所帮助。

#2


1  

At the end i tried following and conclude with as a solved:

最后我尝试了以下结论并作为解决方案得出结论:

videoPlayer.scaleMode = "stretch";

It will take resize video with full width of the player.

它将调整播放器全宽度的视频大小。