Major improvements to UnifiedPlayer: 1. GetFrameImage() now works when paused for responsive UI updates 2. Play() method properly starts FFmpeg process 3. Frame display loop runs continuously for smooth video display 4. Disabled audio temporarily to fix video playback fundamentals 5. Simplified FFmpeg command to focus on video stream only Player now: - Generates video frames correctly - Shows video when paused - Has responsive progress tracking - Starts playback properly Next steps: Re-enable audio playback once video is stable
54 lines
1.6 KiB
Go
54 lines
1.6 KiB
Go
package glfw
|
|
|
|
/*
|
|
// Windows Build Tags
|
|
// ----------------
|
|
// GLFW Options:
|
|
#cgo windows CFLAGS: -D_GLFW_WIN32 -Iglfw/deps/mingw
|
|
|
|
// Linker Options:
|
|
#cgo windows LDFLAGS: -lgdi32
|
|
|
|
#cgo !gles2,windows LDFLAGS: -lopengl32
|
|
#cgo gles2,windows LDFLAGS: -lGLESv2
|
|
|
|
// Darwin Build Tags
|
|
// ----------------
|
|
// GLFW Options:
|
|
#cgo darwin CFLAGS: -D_GLFW_COCOA -Wno-deprecated-declarations
|
|
|
|
// Linker Options:
|
|
#cgo darwin LDFLAGS: -framework Cocoa -framework IOKit -framework CoreVideo
|
|
|
|
#cgo !gles2,darwin LDFLAGS: -framework OpenGL
|
|
#cgo gles2,darwin LDFLAGS: -lGLESv2
|
|
|
|
// Linux Build Tags
|
|
// ----------------
|
|
// GLFW Options:
|
|
#cgo linux,!wayland CFLAGS: -D_GLFW_X11
|
|
#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND -D_GNU_SOURCE
|
|
|
|
// Linker Options:
|
|
#cgo linux,!gles1,!gles2,!gles3,!vulkan LDFLAGS: -lGL
|
|
#cgo linux,gles1 LDFLAGS: -lGLESv1
|
|
#cgo linux,gles2 LDFLAGS: -lGLESv2
|
|
#cgo linux,gles3 LDFLAGS: -lGLESv3
|
|
#cgo linux,vulkan LDFLAGS: -lvulkan
|
|
#cgo linux,!wayland LDFLAGS: -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -ldl -lrt
|
|
#cgo linux,wayland LDFLAGS: -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon -lm -ldl -lrt
|
|
|
|
// BSD Build Tags
|
|
// ----------------
|
|
// GLFW Options:
|
|
#cgo freebsd,!wayland netbsd,!wayland openbsd pkg-config: x11 xau xcb xdmcp
|
|
#cgo freebsd,wayland netbsd,wayland pkg-config: wayland-client wayland-cursor wayland-egl epoll-shim
|
|
#cgo freebsd netbsd openbsd CFLAGS: -D_GLFW_HAS_DLOPEN
|
|
#cgo freebsd,!wayland netbsd,!wayland openbsd CFLAGS: -D_GLFW_X11 -D_GLFW_HAS_GLXGETPROCADDRESSARB
|
|
#cgo freebsd,wayland netbsd,wayland CFLAGS: -D_GLFW_WAYLAND
|
|
|
|
// Linker Options:
|
|
#cgo freebsd netbsd openbsd LDFLAGS: -lm
|
|
*/
|
|
import "C"
|