public static bool Init() { InitGraphicsContext(); movie = new Movie(); player = movie.CreatePlayer(); player.Init(sm_GraphicsContext); InitUI(player); return true; }
public MoviePlayerScene(MoviePlayer player) { InitializeWidget(); this.player = player; this.Button_Play.TouchEventReceived += new EventHandler<TouchEventArgs>(playButtonClick); this.Button_Resume.TouchEventReceived += new EventHandler<TouchEventArgs>(resumeButtonClick); this.Button_Pause.TouchEventReceived += new EventHandler<TouchEventArgs>(pauseButtonClick); this.Button_Stop.TouchEventReceived += new EventHandler<TouchEventArgs>(stopButtonClick); this.UriText.Text = "file:///Application/contents/output.avi"; this.busyDialog = new BusyIndicatorDialog(); this.player.StateChanged += applyStateChaged; this.errorDialog = new ErrorDialog(); this.player.ErrorOccurred += applyErrorOccurred; }
static void InitUI(MoviePlayer player) { UISystem.Initialize(sm_GraphicsContext); Scene scene = new MoviePlayerScene(player); UISystem.SetScene(scene); }
public Movie() { MovieFileDir = "/Application/contents"; OutputDir = "/Documents"; player = MoviePlayer.getInstance(this); }