Play videos using libVLC in a new fullscreen window or pass through to an already existing DX9 window and render directly to that target.
Also supports .zip file packaging using PhysFS via ABI_PhysFS_Loader.
#include <ABI_Video_Player.h>
ABI_Video_Play(const char* filename, HWND AttachWindow = nullptr, IDirect3DDevice9* externalDevice = nullptr);include(FetchContent)
# If you have `ABI_Video_Player` cloned locally, set `""` to its location to avoid fetching it from GitHub.
set(ABI_Video_Player_LOCAL_PATH "" CACHE PATH "CACHE_ABI_Video_Player" FORCE)
if(ABI_Video_Player_LOCAL_PATH)
FetchContent_Declare(
ABI_Video_Player
SOURCE_DIR ${ABI_Video_Player_LOCAL_PATH}
)
else()
FetchContent_Declare(
ABI_Video_Player
GIT_REPOSITORY https://github.com/ActingBadly/ABI_Video_Player.git
GIT_TAG main
)
endif()
FetchContent_MakeAvailable(ABI_Video_Player)
target_include_directories(ABI_Video_Player PUBLIC ${ABI_Video_Player_SOURCE_DIR})
target_link_libraries(APP_NAME PRIVATE
ABI_Video_Player
)