1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-10 19:40:33 +05:30
yattee/Shared/Player/MPV/MPVViewController.swift
Arkadiusz Fal d6d5def4e7 Hello, mpv! 🎉
2022-03-27 22:02:30 +02:00

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