|
The API is no longer being updated here until further notice.
|
Plays a movie.
playSuccess, errorCode = MovieFrame:StartMovie(movieID [, loop])
Arguments[]
- movieID
- number
- loop
- boolean (optional) - Whether to loop the movie. Does not seem to work.
Returns[]
- playSuccess
- boolean - Returns true if the movie could be successfully played.
- errorCode
- number
Value |
Type
|
0 |
success
|
1 |
codec failure
|
2 |
data missing
|
3 |
reading of video file failed
|
4 |
opening of video file failed
|
Example[]
- Plays the Seasons of War trailer (without letterboxing and the option to cancel by pressing escape).
local f = CreateFrame("MovieFrame")
f:SetAllPoints(UIParent)
f:StartMovie(2)