Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

API MovieFrame StartMovie

From Wowpedia
Jump to: navigation, search

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.
local f = CreateFrame("MovieFrame")
f:StartMovie(2)