Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    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?

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Quote 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

  3. #3
    Join Date
    Dec 2005
    Posts
    41
    THANKS YOUR ANSWER WAS THE KEY FOR MY PROJECT

    NOW IT IS %100


Similar Threads

  1. i need to play a video file *.wmv in a Video1 object
    By lnd in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 12-25-2005, 06:19 AM
  2. Video not playing on second play?
    By hbuyer in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 11-16-2004, 01:52 AM
  3. Randomize play list
    By markstaylor in forum AutoPlay Media Studio 5.0
    Replies: 10
    Last Post: 08-04-2004, 11:04 PM
  4. How to play a sound when someone closes?
    By T0Rtur3 in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 06-25-2003, 02:22 PM
  5. how do I group single mp3's to play non stop?
    By georallim in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 06-17-2003, 08:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts