Solved

Change the File MediaPLayer is playing

Posted on 1998-10-08
1
146 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now