SFML community forums
Help => General => Topic started by: etixpp on June 05, 2014, 05:04:57 pm
-
Hello,
2 small questions:
1. Is it possible to embbed a youtube Video to a sfml renderwindow?
2. Is it possible to download a file (at example a .exe) with http request? Maybe a small code snippet somewhere flying arround? D:
-
Hi
1. Not easily. You need a video player and an HTML interpreter.
2. Send a GET request to the file URL and save the response's body to your disk.
-
Could you give me some advice regarding the youtube video stuff?
Maybe link to a good library / player i could use for this.
-
I have no idea, sorry.
-
Did you even try to find a solution on your own? ;)
Ebedding a YouTube video is a rather specific task, plus embedding videos is originally meant for the web. You could probably use something like webkit or awesomiun to get a HTML 5 player, but I can tell you, it won't be just a few clicks. ;)