+ 1
Using c to play youtube song
Hello us it possible to use c to open a youtube and play a song?
4 Antworten
+ 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.
0
Good question,
https://youtu.be/mvqr7vJrgok
Maybe it's helpful to you
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
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.