Search code examples
c#youtube.net-api

play youtube music in application


Does anyone know how to play music from youtube in my c# .net 4.0 app ? I've installed all the apis and sdks from google but i can't seem to find a tutorial that lets me play music in my desktop app .

regards, Alexandru Badescu


Solution

  • If it's an asp.net application, you can just embed an object tag in your markup. Check out the "<embed>" button to get the tag info for an individual video.

    If it's a Windows Forms or WPF desktop application, why not just embed a browser control with the same tag?

    Either way, you should be able to just make the object tag invisible and still be able to hear the music.