SFML community forums

Help => General => Topic started by: etixpp on June 05, 2014, 05:04:57 pm

Title: Youtube Video and Filedownload
Post 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:
Title: Re: Youtube Video and Filedownload
Post by: Laurent on June 05, 2014, 05:06:38 pm
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.
Title: Re: Youtube Video and Filedownload
Post by: etixpp on June 06, 2014, 04:23:42 am
Could you give me some advice regarding the youtube video stuff?
Maybe link to a good library / player i could use for this.
Title: Re: Youtube Video and Filedownload
Post by: Laurent on June 06, 2014, 07:50:12 am
I have no idea, sorry.
Title: AW: Youtube Video and Filedownload
Post by: eXpl0it3r on June 06, 2014, 07:52:38 am
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. ;)