Right, I have a video ready for it to be played on start up of my iphone App. How can I get this implemented into my Xcode project?
I would like it to load as soon as the app is loaded, and the after it is played, to follow onto the correct view controller where the main bulk of my programming is.
It's not clear which part you have trouble with:
Playing video and getting notified when it's finished: See "How do i initiate video playback in my code?" from Audio/Video coding howtos.
Starting it as soon the application is loaded: applicationDidFinishLaunching is a good place to call.
The issue is that you'll see your window's content until the video is loaded, one possible workaround:
add an image of the first frame to
the window, and hide that image when
the video finished
you should also
add this first frame as
Default.png to show it until
your application is loaded
you might need to hide the status bar on startup (UIStatusBarHidden) and show it when the movie finished (setStatusBarHidden).
Related
I know this is not a programming question but thought I would give it a try anyway. I have been unable to get a app screen recording to show popup in recording that user gets when starting app for first time. I can see the pop up clear as day but it never shows on recording.
Is there a trick to get this pop up to show? App Connect says it is required in the video...so kind of stuck. I have tried QuickTime Player, iPhone screen recording, etc to no avail. Running Catalina v10.15.6. Thanks!
I've implemented picture in picture with the AVPictureInPictureController class. It works as long as the application is in focus. From the moment the application is pushed to the background, the picture in picture view fades out and disappears. The audio of the video continues to play in the background.
The application follows Apple's guidelines by enabling the correct background mode and configuring the audio session. The moment the application enters the background, the pictureInPictureControllerWillStopPictureInPicture(_:) and pictureInPictureControllerDidStopPictureInPicture(_:) delegate methods of the AVPictureInPictureControllerDelegate protocol are invoked, indicating that picture in picture is about to be stopped.
There are no logs that point to the root of the problem. Any help or pointers are much appreciated.
It appears the issue was caused by the Brightcove SDK. You can find more information on the Brightcove website.
I'm building an App that plays a mp3 file (hosted on http://<somewhere>/<audio>.mp3) while the user is watching some changing labels (think about a lyrics app, which write the lyrics synchronised with the song).
In the bottom side of the screen I'd like to show the audio controls (play/pause, ff, rew), and a bar for indicating the downloaded part of the file and the playing point.
How is the easiest way to do it? I've already tried with AVAudioPlayer, AVplayer and MPMoviePlayerController, but none of them solved my problem.
You can use MPVolumeView Class.Read the documentation here http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPVolumeView_Class/Reference/Reference.html
I've tried (without success) to get a video to play within a webview. I can see the video thumbnail with the default play button overlaying the video.
When I click the play button - the entire video hi-lights in transparent yellowish/orange. Clicking play again causes the Play button to blink. The thumbnail always remains, but never plays. I can even see the timeline below the video with the play-head, etc. I can never touch the video controls, because every click treats the entire video like one big button - and hi-lights like mentioned above.
They are numerous videos to be played and they are not at YouTube, so launching the YT player with an intent isn't desired.
I'm using SDK 8 (2.2), runing on a 2.3.6 device, and Have the latest Flash Player 11.xxxxx installed.
Any suggestions?
Took another approach in the app.
I would like to be able to display a video on the iphone screen - preferably in a view so that I can control its display coordinates. I want to be able to load the view and overlap and partially overlap a subview ... is any of this feasible? I have read that mpmovieplayer is the only method for video display (and is full screen)? Any workarounds?
You can place an overlay view on top of the video player, but that is pretty much it. There is a sample application in the SDK that shows how to do this.