开发者

is there any animation can be set for opening of the video player in iphone?

开发者 https://www.devze.com 2022-12-25 01:06 出处:网络
I am new to iphone development.I have created a application which able to play a video from a url.Is there any anima开发者_高级运维tion can be set for opening of the video player in iphone?.The video

I am new to iphone development.I have created a application which able to play a video from a url.Is there any anima开发者_高级运维tion can be set for opening of the video player in iphone?.The video is opened normally in landscape view. I want to show the opening of video player with some animation.Is there any way out?

  NSURL *movieURL = [NSURL URLWithString:@"http://url of movie"];

if (movieURL)
{
    if ([movieURL scheme])  
    {
        MovietryAppDelegate *appDelegate = (MovietryAppDelegate *)[[UIApplication sharedApplication] delegate];

        [appDelegate initAndPlayMovie:movieURL];
    }
}

In the delegate class i have defined the initAndPlayMovie method.I used the Apple sample "movie player " for my reference.Thanks.


I guess you can create an UIImageView, and place a screenshot of the movie player on it. Then you can do some fancy effects by scaling the image view or changing its opacity. It may look like "opening".

After the movie is loaded, you will receive, MPMoviePlayerContentPreloadDidFinishNotification and now you can remove the image view.

0

精彩评论

暂无评论...
验证码 换一张
取 消