How can we make the video play in a small view and also filling that whole view?
- by wolverine
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?