yattee/Shared/Player/MPV/MPVViewController.swift

25 lines
442 B
Swift
Raw Normal View History

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