benilla-re systems structs docs

s_movieFrameMethods

global · ui

Address
0x87ab4c · 24 bytes, up to 0x87ab63
Type
void *[6]
Meaning
Holds the 3 name and function pairs of the MovieFrame methods: StartMovie, StopMovie and EnableSubtitles
Confidence
verified, proof one
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.