Welcome to the Indigo Rose Software discussion forums! You will need to sign up for a forum account and login before you can post. Need help? View the Forum FAQ.
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
Comment