iPhone development Swift foundation 03 video and network request
Video player
Before iOS 9, MPMoviePlayerController was used. With the continuous iteration of iOS, AVPlayer has become the mainstream. To add a resource file to a project:
import UIKit
import AVFoundation
class ViewController: UIViewController{
var avPlayer : AVPlayer?
override func viewDidLoad() {
super.viewDidLoad()
...
Added by George W. Bush on Tue, 04 Jan 2022 09:20:08 +0200