How Y Can Play "wma" On >>> ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ANAS3
    Forum Member
    • Dec 2005
    • 41

    How Y Can Play "wma" On >>> ?

    Hi My Forums

    I Ask :

    How Y Can Play "wma" On Plugins Medaplayer Like "wav" Dirct

    Do Not Use Listbox?
  • holtgrewe
    Indigo Rose Customer
    • Jul 2002
    • 779

    #2
    Originally posted by ANAS3 View Post
    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

    Comment

    • ANAS3
      Forum Member
      • Dec 2005
      • 41

      #3
      THANKS YOUR ANSWER WAS THE KEY FOR MY PROJECT

      NOW IT IS %100

      :yes

      Comment

      Working...
      X