MovieFrame::StartMovie
function · ui · primitive
- Address
0x78d770· 254 bytes, up to0x78d86d- Signature
int __fastcall (lua_State *L)- Meaning
- Starts playing a movie file and returns 1 when it started
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/movieframe#starting-and-stopping
Finding: Starting and stopping in ui: the movie frame
StartMovie("name") needs a string (Usage: <frame>:StartMovie("filename")). It runs the file reader, the decoder start, the audio start and the subtitle load, sets the playing flag at +0x314, stops the frame pass presenting, sets the clear colour to black, clears, presents
(Presenting mid-frame) and clears again. It returns nil when the file reader or the decoder start fails and 1 otherwise: the audio start and the subtitle load results are ignored. StopMovie() ends a playing movie: it destroys the decoder, the audio and the captions, clears the playing and finished flags and runs
OnMovieFinished (+0x320). The movie also ends by itself at the last frame or when the audio ends. EnableSubtitles([flag]) stores the flag (true when absent) at +0x31c.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 10
- lua_settop lua
- lua_type lua
- lua_isstring lua
- lua_tostring lua
- lua_touserdata lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_rawgeti lua
- luaL_error lua
- StartMoviePlayback ui
Calls and jumps by a bare address, from tables/calls.tsv.