playing multiple video files using axWindowMediaplayer tool !!!
-
i want to play multiple video files one after another continously, using axWindowMediaPlayer tool.. For which I wrote the below code.... But here the problem is tat, it plays the last video file only and initial ones are not at all played..... where am i going wrong ??? plz help ---- ************************************************************************************************* using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } System.IO.FileInfo[] files = null; int index = 0; private void Form1_Load(object sender, EventArgs e) { System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo("C:// mist"); files = dirInfo.GetFiles("*.avi"); foreach(FileInfo f1 in files) { axWindowsMediaPlayer1.URl=f1.FullName; } }}}
-
i want to play multiple video files one after another continously, using axWindowMediaPlayer tool.. For which I wrote the below code.... But here the problem is tat, it plays the last video file only and initial ones are not at all played..... where am i going wrong ??? plz help ---- ************************************************************************************************* using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } System.IO.FileInfo[] files = null; int index = 0; private void Form1_Load(object sender, EventArgs e) { System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo("C:// mist"); files = dirInfo.GetFiles("*.avi"); foreach(FileInfo f1 in files) { axWindowsMediaPlayer1.URl=f1.FullName; } }}}