yattee/Shared/Player/MPV/MPVViewController.swift

26 lines
472 B
Swift
Raw Normal View History

2022-02-16 20:23:11 +00:00
import UIKit
final class MPVViewController: UIViewController {
var client: MPVClient!
var glView: MPVOGLView!
init() {
client = MPVClient()
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override func viewDidLoad() {
super.loadView()
glView = client.create(frame: view.frame)
view.addSubview(glView)
super.viewDidLoad()
}
}