Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. playing multiple video files using axWindowMediaplayer tool !!!

playing multiple video files using axWindowMediaplayer tool !!!

Scheduled Pinned Locked Moved C#
helpdatabasegraphicsquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mist_psycho
    wrote on last edited by
    #1

    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; } }}}

    R 1 Reply Last reply
    0
    • M mist_psycho

      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; } }}}

      R Offline
      R Offline
      Roman Lerman
      wrote on last edited by
      #2

      I think you should read this.[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups