2012-04-27 3 views

답변

2

애 스커는 아마 그의 대답을 얻었다, 그러나 다만이 질문에시의 경우 다른 사람 비틀 거림에, 여기에 몇 가지 코드입니다 :

[[(MPMoviePlayerController *)videoPlayer view] setFrame:CGRectMake(x, y, w, h)]; 
[(MPMoviePlayerController *)videoPlayer setScalingMode:MPMovieScalingModeFill]; 
[(MPMoviePlayerController *)videoPlayer setFullscreen:NO]; 

경우 setScalingMode : MPMovieScalingModeFill 승에 (x, y에 맞게 영화를 왜곡합니다 , h) 지역.

+0

감사합니다. 나는 대답을 얻지 못했지만, 왜곡하기보다는 오히려 4/3, 16/9 이외의 다른면을 가지고있는 비디오를 원래의 해상도로 또는 균등하게 축소하거나 축소하지 않고 표시하는 것에 대해 이야기했습니다. –

+0

m_pNativeVideoSurface 란 무엇입니까 ?? 나는 가지 않는다. 나는 위에서 질문 한 것과 같은 질문을했습니다. 제발 저를 도와주세요 !! –

+1

어리석은 실수. 어 스펙트를 맞추고 스케일을 조정하려면 '[[(MPMoviePlayerController *) m_pNativeVideoSurface view] setFrame : ((UIView *) m_pNativeVideoContainer) .bounds]; [(MPMoviePlayerController *) m_pNativeVideoSurface의 setScalingMode : MPMovieScalingModeAspectFit]' 이 비디오 뷰를 채우기 위해 '[[(MPMoviePlayerController *) m_pNativeVideoSurface보기] setFrame : ((의 UIView *) m_pNativeVideoContainer) .bounds] [(MPMoviePlayerController *) m_pNativeVideoSurface setScalingMode : MPMovieScalingModeFill];' –

관련 문제