How should I implement it to play iOS videos simultaneously?
I want to play 4 videos simultaneously on my iPad.
It can be implemented in the application of iOS app development company TouchPress.
https://www.youtube.com/watch?v=nK54PvY_nAQ&feature=youtu.be&t=72
It's not a complete answer, but if it's a YouTube video, I've been able to play multiple simultaneous views using the following LBYouTubeView before.
@Nyoho
Thank you! Try LBYouTubeView.
Actually, I was able to play it with multiple AVPlayerViewControllers.
Generate multiple AVPlayer, set each AVPlayer to the AVPlayerViewController, and locate each AVPlayerViewController.
let movieUrl:NSURL=NSURL.fileURLWithPath(path)
let each_player = AVPlayer (URL: movieUrl)
letach_playerController=AVPlayerViewController()
each_playerController.player=each_player
each_playerController.showsPlaybackControls=false
letx_position —CGFloat=self.thumbnailMovieWidth*contents_count
each_playerController.view.frame = CGRectMake(x_position, 0, self.thumbnailMovieWidth, self.thumbnailMovieHeight)
self.addChildViewController(each_playerController)
// Put thumbnail into scroll view
self.buttonThumbnailMoviesScrollView.addSubview(each_playerController.view)
© 2024 OneMinuteCode. All rights reserved.