View Full Version : Still need help with WMP plug in
Ed Stanley
02-10-2006, 04:49 PM
I have spent the last 2-3 hours trying to get the wmp plug-in to function. Let me explain what I am doing and maybe someone can offer a solution for me. I am trying to create an autorun cd featuring mp3 audio tracks of the narration of the Bible. Among other contents I have an audio file titled "Genesis" that contains 50 mp3 tracks.
I have a menu page created with several buttons, one of which is titled "Genesis". I have added the wmp plug-in to the page, and in the properties I only unchecked the rewind option. In the script tab I have tried it by leaving it blank, by adding "MediaPlayer.Play("Plugin1"), and by using MediaPlayer.load("Plugin1", "AutoPlay\\Audio\\01 GENESIS").
For the "Genesis" button, I have assigned the script: MediaPlayer.load("Plugin1", "AutoPlay\\Audio\\01 GENESIS")
When I Preview, and click on the "Genesis" button a Windows Media Player message pops-up: "The file you are attempting to play has an extension that does not match the file format. Playing the file may result in unexpected behavior. Do you want the Player to try to play the file? Yes or No".
I select YES and then select play on the WMP window and no sound is heard.
I have tried to follow the example in the "media player.apz" sample that stickck has posted in a ListBox thread, without using a List Box, but so far to no avail.
I would like to be able to click on the "Genesis" button and have the WMP play the 50 tracks in sequential order or by selecting the "previous/next" buttons on the player. Can someone help a novice here. I've read the plug-in help page, but having trouble understanding it all. Thanks for any input anyone offers.
Ed Stanley
Intrigued
02-10-2006, 05:17 PM
Flying thru your post (stopping for nay a redlight)...
MediaPlayer.load("Plugin1", "AutoPlay\\Audio\\01 GENESIS")
Try:
MediaPlayer.load("Plugin1", "AutoPlay\\Audio\\01 GENESIS.mp3")
Roboblue
02-11-2006, 12:49 AM
if you want to play all 50 in sequential order, then create a play list (.m3u). You can have a list box auto-populated to get all the singles listed (which can be loaded in to wmp singley) from a folder, then have a listing in the list box (or a seperate button) to create a playlist on the fly. The selection is then loaded into wmp.
Do a search on play list.
Ed Stanley
02-11-2006, 05:51 PM
Thanks to Intrigued and Roboblue for your suggestions. On Monday I'll see if they resolve my problem. Your help is appreciated.
Ed Stanley
Intrigued
02-11-2006, 09:29 PM
We'll get to the bottom of the problem if that does not help.
See you on Monday and enjoy your weekend,
Ed Stanley
02-14-2006, 08:35 PM
if you want to play all 50 in sequential order, then create a play list (.m3u). You can have a list box auto-populated to get all the singles listed (which can be loaded in to wmp singley) from a folder, then have a listing in the list box (or a seperate button) to create a playlist on the fly. The selection is then loaded into wmp.
Do a search on play list.
How is a .m3u playlist created? By simply changing the ext. of each individual track from .mp3 to .m3u?
And I don't understand how to "have a listing in the list box to create a playlist on the fly." Can you give a little explanation?
I was finally able to get the wmp plugin to work using the "listbox" and "mediaplayer" examples found elsewhere in the forum; the tracks just don't play sequentially. Each track plays and then stops when it gets to the end. As indicated above I would like to have the option of the tracks to play continuously within the AutoPlay cd without using the wmp on the user's pc.
Thanks again for any input you are willing to provide.
Ed Stanley
Roboblue
02-15-2006, 01:50 AM
An m3u is just a text file that has the path to each song in a list. Open an m3u with notepad and see how it's laid out. They are easily edited in notepad, butyou have to save as an .m3u. There are other players that use m3u (Winamp, CoolPlayer, etc) so in this example, the playlist will open in the user's default palyer that supports m3u.
The Page On Show will populate the list box with .mp3 files from the folder AutoPlay-Music. Use the refresh button if you have added mp3 files to the Music folder since you first opened the app.
Then you can double click a selection to play singly. Clicking Play All creates a playlist from the sorted list box, saves it to Docs-playlist.m3u, then loads the playlist into the user's default player. The playlist will be recreated "on the fly" everytime you click Play All.
You can also add files from the user's system with the ADD button. You can Clear the whole playlist, or Delete a song from the playlist. You can set the order of the songs saved to the playlist (.m3u) by using the arrow keys.
This example has the condition that you have to put the mp3's into the Autoplay-Music folder for the list box to be auto-populated. You can change the default folder in the code.
Hope this helps
Roboblue
02-15-2006, 03:11 AM
Dang It!
I just noticed that you wanted the mp3's to open in the embedded wmp.
Try this updated version.
stickck
02-24-2006, 07:17 PM
Here you go Ed.
i fixed the stuff you were talking about. i did away with the WMP plugin though. if you need the WMP plugin let me know and i'll just add it back in. From you PM , i figured you were only using it because you thought it was needed in order to play MP3 Files. It's not.
hope this helps
Chris
stickck
02-24-2006, 08:04 PM
here's the sample if you did want to keep the WMP plugin. you dont need to mess with a .m3u file either. look in the WMP plugin scripts to see how i set up the continue function. the only thing is that the next and previous buttons built into the WMP dont do anything because the playlist only has 1 song in it at a time. that's where the ones i added to the top of the project come in handy.
hope this helps
chris
playmenow
02-25-2006, 10:38 AM
and use proper case: MediaPlayer.Load("plugin1", string_file)
odonel
08-02-2006, 09:21 AM
should that work with a url also ? i have MediaPlayer.load("mp1", "mms://www.mysite.com:8088/music")
it does not do a thing, how do i make it work with an mms or http publishing point ???
thanx
Intrigued
08-02-2006, 06:00 PM
This post may help:
http://www.indigorose.com/forums/showpost.php?p=27743&postcount=2
peterzuma
11-05-2006, 02:20 AM
here's the sample if you did want to keep the WMP plugin. you dont need to mess with a .m3u file either. look in the WMP plugin scripts to see how i set up the continue function. the only thing is that the next and previous buttons built into the WMP dont do anything because the playlist only has 1 song in it at a time. that's where the ones i added to the top of the project come in handy.
hope this helps
chris
Thanks you about player22.apz but I want show an image when select an Item text in listbox .Please help me
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.