mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 08:18:19 +00:00
27 lines
494 B
Swift
27 lines
494 B
Swift
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()
|
|
|
|
client.create(frame: view.frame)
|
|
glView = client.glView
|
|
|
|
view.addSubview(glView)
|
|
|
|
super.viewDidLoad()
|
|
}
|
|
}
|