mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Player controls UI changes
WIP on controls Chapters working Add previews variable Add lists ids WIP
This commit is contained in:
@@ -11,7 +11,7 @@ final class MPVOGLView: GLKView {
|
||||
var needsDrawing = true
|
||||
|
||||
override init(frame: CGRect) {
|
||||
guard let context = EAGLContext(api: .openGLES3) else {
|
||||
guard let context = EAGLContext(api: .openGLES2) else {
|
||||
print("Failed to initialize OpenGLES 2.0 context")
|
||||
exit(1)
|
||||
}
|
||||
@@ -20,10 +20,12 @@ final class MPVOGLView: GLKView {
|
||||
|
||||
super.init(frame: frame, context: context)
|
||||
|
||||
EAGLContext.setCurrent(context)
|
||||
self.context = context
|
||||
bindDrawable()
|
||||
|
||||
defaultFBO = -1
|
||||
isOpaque = false
|
||||
isOpaque = true
|
||||
enableSetNeedsDisplay = false
|
||||
|
||||
fillBlack()
|
||||
}
|
||||
|
@@ -2,7 +2,6 @@ import UIKit
|
||||
|
||||
final class MPVViewController: UIViewController {
|
||||
var client: MPVClient!
|
||||
var glView: MPVOGLView!
|
||||
|
||||
init() {
|
||||
client = MPVClient()
|
||||
@@ -17,9 +16,8 @@ final class MPVViewController: UIViewController {
|
||||
super.loadView()
|
||||
|
||||
client.create(frame: view.frame)
|
||||
glView = client.glView
|
||||
|
||||
view.addSubview(glView)
|
||||
view.addSubview(client.glView)
|
||||
|
||||
super.viewDidLoad()
|
||||
}
|
||||
|
Reference in New Issue
Block a user