Click here to Skip to main content
15,919,774 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
private void axWindowsMediaPlayer1_ClickEvent(object sender, AxWMPLib._WMPOCXEvents_ClickEvent e)
        {
            axWindowsMediaPlayer1.URL = "Scott_Holmes_-_04_-_Upbeat_Party.mp3";
        }



Or...

player.URL = "Scott_Holmes_-_04_-_Upbeat_Party.mp3";


...and didn't work!

What I have tried:

worked then, and now dosen't.
What could i do?
Posted
Updated 16-May-20 1:13am
v2

1 solution

Check your folders, and provide an absolute URL to the source file: unless you do, the chances are that the current directory has been changed, and a relative path such as "myfile.mp4" will not be located, while "C:\My Music\myfile.mp4" will.
 
Share this answer
 
Comments
Member 14177129 5-Jun-20 11:29am    
Thanks
Member 14177129 5-Jun-20 11:30am    
It was missing WindowsMediaPlayer player = new WindowsMediaPlayer();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900