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

25 lines
442 B
Swift
Raw Normal View History

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