mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Hello, mpv! 🎉
This commit is contained in:
25
Shared/Player/MPV/MPVViewController.swift
Normal file
25
Shared/Player/MPV/MPVViewController.swift
Normal file
@@ -0,0 +1,25 @@
|
||||
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()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user