Hey again :p

I use OpenFileDialog to open files.
When i open file then how i can get that length video.(i open video files)

Recommended Answers

All 4 Replies

What type of videos (mp4, flv, etc) are they? You're probably going to need to use a Windows Media Player control http://msdn.microsoft.com/en-us/library/dd564582(VS.85).aspx or another API appropriate for your video type.

axWindowsMediaPlayer1->URL = openFileDialog->FileName;
						axWindowsMediaPlayer1->Ctlcontrols->play();
						textBox4->Text  = axWindowsMediaPlayer1->currentMedia->durationString;
						axWindowsMediaPlayer1->Ctlcontrols->stop();

no work.i havent any more idea to do that

What value does the durationString have?

What value does the durationString have?

00:00

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.