示例#1
0
 public MoviePlayer(HashSet<Movie> movies, int playerCount)
 {
     InitializeComponent();
     this.Size = Screen.PrimaryScreen.Bounds.Size;
     this.movies = new Queue<Movie>(movies);
     this.playerCount = playerCount;
     player = new AxAXVLC.AxVLCPlugin2[playerCount];
     ColumnCalc();
     RowCalc();
     CreatePlayer();
     playerController = new PlayerController(player);
 }
示例#2
0
 public MoviePlayer(Movie movie)
 {
     InitializeComponent();
     this.Size = Screen.PrimaryScreen.Bounds.Size;
     this.movies = new Queue<Movie>();
     this.movies.Enqueue(movie);
     axVLCPlugin21.Size = this.Size;
     axVLCPlugin21.Visible = true;
     axVLCPlugin21.playlist.add(@"file:///" + movie.location);
     axVLCPlugin21.playlist.play();
     playerController = new PlayerController(axVLCPlugin21);
 }