1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 06:40:32 +05:30
yattee/Shared/Player/MPV/MPVViewController.swift

27 lines
494 B
Swift
Raw Normal View History

2022-02-17 01:53:11 +05:30
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()
2022-02-28 02:01:17 +05:30
client.create(frame: view.frame)
glView = client.glView
2022-02-17 01:53:11 +05:30
view.addSubview(glView)
super.viewDidLoad()
}
}