mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 06:10:32 +05:30
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()
|
||
|
}
|
||
|
}
|