ANAS3
06-27-2008, 07:22 AM
Hi My Forums
I Ask :
How Y Can Play "wma" On Plugins Medaplayer Like "wav" Dirct
Do Not Use Listbox?
holtgrewe
06-27-2008, 08:12 AM
Hi My Forums
I Ask :
How Y Can Play "wma" On Plugins Medaplayer Like "wav" Dirct
Do Not Use Listbox?
This is taken from the Media-player plugin help file with just a little tweeking.
It was oringinally coded for video files, but modified for audio.
This should get you started on solving your issue.
-- Display a File Browse Dialog, and then play the video that they select
-- Pick a nice default folder to start the browsing in (My Documents)
myfolder = Shell.GetFolder(SHF_MYDOCUMENTS);
-- Show the file browse dialog
strExtensions = "All Audio Files (*.wma;*.mp3;*.wav)|*.wma;*.mp3;*.wav|All Files (*.*)|*.*|";
tFiles = Dialog.FileBrowse(true, "Load wma files", myfolder.."\\My Music", strExtensions, "", "", false, true);
-- Only load the video if they did not press Cancel
if tFiles[1] ~= "CANCEL" then
-- make sure the object is visible before trying to load a video
Plugin.SetVisible("Plugin1", true);
-- Load the video File
MediaPlayer.Load("Plugin1",tFiles[1]);
-- Play the video
MediaPlayer.Play("Plugin1");
end
ANAS3
06-27-2008, 06:06 PM
:) THANKS YOUR ANSWER WAS THE KEY FOR MY PROJECT
NOW IT IS %100
:yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.