Hi My Forums
I Ask :
How Y Can Play "wma" On Plugins Medaplayer Like "wav" Dirct
Do Not Use Listbox?
Professional Software Development Tools
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.
Code:-- 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
THANKS YOUR ANSWER WAS THE KEY FOR MY PROJECT
NOW IT IS %100
![]()