PDA

View Full Version : Loading a wav-file into MediaPlayer object?


Schmidl
04-16-2004, 07:34 AM
Hello everybody,

her's another one: I'd like to play wav files in a MediaPlayer object. The way it should be: The MediaPlayer is empty, besides are the descriptions of different wav files.

When clicking on a certain description, the wav should load into the player. I (even me :D) know how to create the hotspot or make the descriptions "clickable". But what code do I need to load/unload the files into/from the player?

I know my questions are all basic and may be boaring for you, sorry for that. But I have smelled blood with MediaStudio and I promise not to bother you that much when I can develop easy applications myself :cool. And I've been searching the forum for more than an hour the find the answer for this problem of mine, but with no result.

Thanks again and a happy weekend
Schmidl

kpsmith
04-16-2004, 10:03 AM
Take a look at this...

It uses a listbox and a media player plugin object to select and play the wavs

Schmidl
04-17-2004, 05:17 AM
Hello kpsmith,

thank you, it works :)! But one thing: The progress slider moves only shorty and then falls back to the start position. One can't go fast forward or rewind, neither with the slider, nor with the FF/FR buttons. Is this a subject to wav-files?

Schmidl

Schmidl
04-17-2004, 07:20 AM
It really is a Wav-issue. When loading mp3-files, all transport-functions work correctly.

Thanks again!
Schmidl

kukimax
10-31-2005, 02:02 PM
Hi
How to make so to "ListBox1" he be actualized by internet.?
File which on example on some server would be he would introduce in field name "Item Text" and in field "Item Data" address would introduce on example some radio station.?