Solved

Change the File MediaPLayer is playing

Posted on 1998-10-08
1
156 Views
Last Modified: 2010-04-06
I have on my Form a OpenDialog and a MediaPlayer.
I want the media player to playa WAV file choosen from the opendialog. Once I have the filename i do,
  Mediaplayer.filename := OpenDialog.filename;
then MediaPLayer.play, but this doesnt work....
It doesnt play any file....
If I Put a filename in MediaPLayer.filename before I compile the progam it will play that file even when I change the Mediaplayer.filename...
What is going on here?
0
Comment
Question by:zammo
1 Comment
 
LVL 5

Accepted Solution

by:
inter earned 0 total points
ID: 1342230
Try closing and opening media player BEFORE assigning a file name. Such as

MediaPlayer1.Close;
MediaPlayer1.FileName := 'xxxxx';
MediaPlayer1.Open;
MediaPlayer1.Player;

igor
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question