Adding video to an iPhone application

后端 未结 2 1916
无人及你
无人及你 2021-01-17 08:12

How do I add a video to an iPhone app. using iPhone SDK 3.2.5? I dont see the actual video but I can hear it playing.

Here is the code:

-(void) viewD         


        
相关标签:
2条回答
  • 2021-01-17 08:45

    First off – find out what video format you are having. I assume it's not the one supported by iPhones.

    1. So when you learn this you can go ahead and look for a third party player that is able to play back your video. I'm sure there are a lot of them there. Recommendation from me – try using VLC.

    2. If you want to use default videos app on your iPhone (which, of course, is way better than any other alternative) you can try out Windows & Mac application WALTR 2: https://softorino.com/waltr/windows-guides/how-transfer-videos-to-iphone-without-itunes. It adapts any video & music for iPhone playback and pushes them to your default app on an iPhone.

    0 讨论(0)
  • 2021-01-17 09:09

    You need to set the frame for you MPMoviePlayerController and add it to your view:

    theMovie.view.frame = CGRectMake(0.0, 0.0, 320.0, 480.0);
    [self.view addSubview:theMovie.view];
    
    0 讨论(0)
提交回复
热议问题