문제

i'm using videodisplay to play a rtmp stream, streamed video is 800X600 which also the size of the videodisplay. but when it starts to play a black area appears on both top and bottom of the video.

attached image shows what i mean

enter image description here

도움이 되었습니까?

해결책

Depends on the ratio of video, but I think you can use something like this:

videoDisplay.scaleMode = ScaleMode.STRETCH;

or

videoDisplay.scaleMode = ScaleMode.LETTERBOX;

 


Update :

So in this case I think setting maintainAspectRatio as false within your <mx:videoDisplay /> will help you, Although the main purpose of that is maintaining the original aspect ratio while resizing the video.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top