29. 実装ポイント
動画再生
let asset = AVAsset(url: url)
let playerItem = AVPlayerItem(asset: asset)
let player = AVPlayer(playerItem: playerItem)
playerView.player = player
動画
70. Playerの監視
Notification
public static let AVPlayerItemTimeJumped: NSNotification.Name
public static let AVPlayerItemDidPlayToEndTime: NSNotification.Name
public static let AVPlayerItemFailedToPlayToEndTime: NSNotification.Name
public static let AVPlayerItemPlaybackStalled: NSNotification.Name
public static let AVPlayerItemNewAccessLogEntry: NSNotification.Name
public static let AVPlayerItemNewErrorLogEntry: NSNotification.Name