New after update to Xcode 15:
Error processing request from MAD on result: Error Domain=NSOSStatusErrorDomain Code=-128 "Request was canceled"
Here is my code which I call within my GameViewController's viewDidLoad().
present(itsPlayerController!, animated:true) {
self.itsMoviePlayer?.play()
self.itsMovieIsFinished = false
}
Here is my code which I call at various times via playMovie(movieName: "pose"):
func playMovie(movieName: String) {
NotificationCenter.default.addObserver(self, selector: #selector(playerDidFinishPlaying),
name: NSNotification.Name.AVPlayerItemDidPlayToEndTime,
object: itsPlayerController?.player?.currentItem)
present(itsPlayerController!, animated:true) {
self.itsMoviePlayer?.play()
self.itsMovieIsFinished = false
}
} // playMovie
@objc func playerDidFinishPlaying(note: NSNotification) {
self.itsPlayerController?.dismiss(animated:false, completion:nil)
nextScene()
changeScene()
// re-init for next time
setupMovie(theMovieName: "pose")
}
NB:
If I do not call playMovie ==> NO ERROR
THE PROBLEM = my call to present within playMovie. If I totally comment out present, = NO ERROR
If I comment out just the guts of present, other errors are introduced.
I have checked the syntax of calling present and I don't see any error there.
All the above pertains to the Destination = iPad Mini (6th Generation
If the Destination = Apple TV, then we get within GameViewDidLoad
Unable to simultaneously satisfy constraints.
For both Destinations, the Game runs OK - it's just these Warnings??
HAALP
3
0
2k