mirror of
https://github.com/yattee/yattee.git
synced 2024-12-25 06:53:42 +00:00
26 lines
472 B
Swift
26 lines
472 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()
|
||
|
|
||
|
glView = client.create(frame: view.frame)
|
||
|
|
||
|
view.addSubview(glView)
|
||
|
|
||
|
super.viewDidLoad()
|
||
|
}
|
||
|
}
|