How can we make the video play in a small view and also filling that whole view?
Posted
by wolverine
on Stack Overflow
See other posts from Stack Overflow
or by wolverine
Published on 2010-04-16T09:31:21Z
Indexed on
2010/04/16
9:33 UTC
Read the original article
Hit count: 201
iphone
|mpmovieplayercontroller
I have added an imageView of size 300*300 into the interface in my ipad project. I can play the video fullscreen using MPMOviePlayerController. And I am trying to make it play in the imageView by using the following code.
[imageView1 addSubview:moviePlayer.view];
[self.moviePlayer play];
Its playing but not as fullscreen and also not filling the whole imageview. Its kind of playing on the top quarter of the view and that too not the whole movie view - about lower right 60% only.
How can I fix this? How can I make the movie play on the whole imageview like it plays on the full screen?
© Stack Overflow or respective owner