Creating a media player.

hello, i am completely new to Visual C#, and i am wondering how to play music. i am mainly trying to make a media player with a web browser, but i am extremely confused on how to do this. i have googled this subject many times over with no luck. i dont know, maybe i am missing somthing. any help would be nice.

i just got into C# about 4 days ago. go easy. :)


Answer this question

Creating a media player.

  • GoodMorningSky

    MartinDev wrote:
    one more question... is there anyway to do this without the WMD component

    I think u can also use Real Player component .


  • Gouri Sankar

    not unless it has some interop/SDK/API you can use. But I think the user meant if there is another way to use it without having to embed a player component in the application

  • MAwais

    Haha, i had no idea it would be that easy. thank you so much. also, im sure in the new future i will have many more questions. im trying to build up to Xna, so i guess this is where to start.

  • Kolja

    one more question... is there anyway to do this without the WMD component

  • CodeHaxor

    no worries at all! :-)

  • Husain Jagmag

    You mean WMP right ...actually there is...he'll explain how it works..try watch em...they do help :)

    http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/default.aspx

    and if you interested in DVD players too...theres a DVD player too lol how funny xD
    we all got it by default its not .net COM...

    ahmed already told you how to add new COMs go to the COM controls not the .NET and at buttom almsot find MSwebDvd Class and add it ..its pritty much easy to use...try mess around with it..
    and theres the Shock Wave player too...used to play Flash files and shockwatve and few other animation files...alsow in COM controls...called ShockWave.


  • Brian Patrick

    to do it without the WMP component - not really since you have to decode media streams, read the files, split the audio/video streams, read it frame by frame...long hard process and not worth it if there is already a solution you can implement

  • Rihaz

    well you would be better off using a WMP COM component. This will allow you to embed WMP into your application then you simply give it the path to the file via the URL property and you can play/pause and increase/decrease volume

    http://msdn.microsoft.com/windowsmedia/downloads/default.aspx

    you can drag this control onto your form. In design view right click on the toolbox and go to Choose Items, select COM Components then select Windows Media Player (check the box) and click ok. Then drag and drop the component onto the form and code away!

     

    I would give you specific links to some articles to look at but MSDN is unfortunately down at the moment!

    in regards to a webbrowser just drag and drop the webbrowser component on the form. Then use the methods like Navigate(url) to navigate to a site, or GoBack or GoForward etc...

    http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx



  • Creating a media player.