Commit 47ec385
committed
feat(video): add Lua bindings for video playback and stream management
- Add Video.hpp and Video.cpp Lua binding classes for video resource management
- Implement video information methods (getWidth, getHeight, getDuration, getCurrentTime, getFPS)
- Implement playback control methods (seek, update, setLooping, setLoopRange, getLoopRange)
- Add stream enumeration methods (getVideoStreams, getAudioStreams, getSubtitleStreams)
- Add stream selection methods (selectVideoStream, selectAudioStream, selectSubtitleStream)
- Implement getTexture method to retrieve associated Texture2D object
- Register Video class in LuaWrapper for Lua API exposure
- Add video_example_modern.lua example demonstrating video loading and playback
- Update CMakeLists.txt to include new Video binding source files
- Extend Texture2D and VideoTexture interfaces to support video decoder access1 parent 39b0b90 commit 47ec385
8 files changed
Lines changed: 553 additions & 3 deletions
File tree
- LuaSTG
- LuaSTG/LuaBinding
- modern
- data/example
- engine/graphics
- core
- d3d11
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
0 commit comments