1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30
yattee/Shared/Player/MPV/MPVViewController.swift
2022-10-27 18:03:57 +02:00

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()
}
}