+ 1

Using c to play youtube song

Hello us it possible to use c to open a youtube and play a song?

10th Mar 2023, 6:18 PM
Llai
4 Respostas
+ 5
Llai if you just want to open a link it's pretty simple, on windows try: ShellExecute(0,"open","https://youtu...",0,0,SW_SHOWNORMAL); this will find and execute the default browser (Chrome, Firefox, etc...) and loads the specified URL. works on windows 95 and above. Remember to include windows.h header. there are other ways also. On linux it's easier: system("open https://youtu..."); this will do the same. remember to include stdlib.h header. if you want to open a specific application and make that to play something, it totally depends on that app, some do it by default if you provide a command line argument, like most media players.
11th Mar 2023, 3:03 PM
Tina
Tina - avatar
0
Good question, https://youtu.be/mvqr7vJrgok Maybe it's helpful to you
10th Mar 2023, 6:31 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
0
It's more like opening an application, then play a song. Is it possible with c? Ex opening youtube in chrome and playing music there
10th Mar 2023, 7:17 PM
Llai
0
Llai I think it's not possible, and if you know about chatgpt then ask the same question on chatgpt maybe the bot will help you.
10th Mar 2023, 7:35 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar