Play video file on splash screen - ios

Can I play a video file in the splash screen?
I use Defualt.png and sleep interval method to use static splash screen. Instead of an image, I want to play a video of about 10 sec.
How can I do that?

Just make Default.png to be the first frame of your video. When the application is loaded, start the video. This is something in between. Hope it helps.

No, the default image is shown by the system while your app is loading, so your code isn't running yet (kinda the whole point). Once it is loaded, you can create a media player and play your video.

Related

How to play video in line without open up to full screen?

This is my first message app. The tutorial i been watch only teach me how to play the video with full screen. It will be cool if i can play the video without open up to another window or full screen.
i been trying a lot of other stuff but still cant get it to work.
Also now when i playing the video it goes to full screen and the load bar is gonna too. (Xcode 8, iOS 10)
How would modify my code for the video not playing in full screen?

Auto video in iphone?

Anyone know how to add the auto playing video background in iOS? I am guessing its actually images? But the video lasts for 15 seconds so if its images then at 24fps minimum that is a lot of images.
I tried using the UIImageView swapping of images, but it seems like a hack way to do this.
See Uber's app and I think Airbnb has it also.
You can make them images as you guessed, or play video using either MPMoviePlayerController or AvPlayer. Just add any as a subview to your view and make it play at viewWillAppear. I used AvPlayer as the app home screen background before and it worked perfectly.

Show video when first frame is loaded (no black screen)

I need to find a way to display the view of a MPMoviePlayerController after the first frame of the video is cached.
My App shows the first frame of the video as a png and I want the video then to be shown without the screen going black for a second. How can I do that?
Display that image as a view-overlay on top of your MPMoviePlayerController by adding it as a subview of MPMoviePlayerController.view.
Once the video has started the playback (use the MPMoviePlayerPlaybackStateDidChangeNotification to react upon that), hide / remove your overlay.

Does Simulator Play Video?

I want To Add an splash screen on my application which will play a video. Can I test it on simulator? Any help regarding playing the video will be appreciated.
This and this might help you...Simulator does play video..But I dont think you can play video as splash screen..
If you are using html tag(video) then it will not be shown on simulator.But on device its okay.
You want to show a video as a splash screen,i dont know how you managed that.
Better you could use a gif file.

iOS 4.1 black screen before playing video using MPMoviePlayerViewController

My application flow is something like the following
A Video plays.
Once its done. Couple of icons are shown on the screen for users to tap on.
Depending on which icon was tapped, another video starts.
If no icon is tapped for like 5 seconds we automatically go to next video.
The problem is with 3. Just before the video starts a black screen appears for like 0.5 second.
Not sure what's going on because the videos in step 1 and step 4 plays fine.
It will be great if someone can give ideas to debug and fix this.
Thanks!
You can try to put a background-image onto the player with:
[[moviePlayer view] setBackgroundColor:<UIImage>image];

Resources