Embedding MPEG-2 movies in a web page using VLC
Posted: 05 Jan 2010 16:45
Hello!
I've been trying to embed an MPEG-2 video into an HTML page. I wanted to do it in the most portable way possible, therefore chose to use VLC.
My need is to open MPEG-2 movies retrieved from a server, using both HTTP and HTTPS.
I've come up with several solutions, but none of them work appropriately.
This is the last version:
This is simple and works properly under Firefox (3.5 under Windows XP), but only supports HTTP. If the request is HTTPS it gets stuck (btw, opening the same https url from within the VLC application yields errors, which are not logged into the log file). The same approach doesn't work in IE (8).
The files are received within an HTTP response containing an "attachment" content-disposition.
Please, does anyone know what I'm doing wrong, either in the HTML or in the system configuration (I've not tested the page under Linux yet...)?
Thank you very much in advance!
I've been trying to embed an MPEG-2 video into an HTML page. I wanted to do it in the most portable way possible, therefore chose to use VLC.
My need is to open MPEG-2 movies retrieved from a server, using both HTTP and HTTPS.
I've come up with several solutions, but none of them work appropriately.
This is the last version:
Code: Select all
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" style="width: 300px; height:300px;">
<param name="Src" value="http://..." />
<embed src="http://..." style="width: 300px; height:300px;"/>
</object>
The files are received within an HTTP response containing an "attachment" content-disposition.
Please, does anyone know what I'm doing wrong, either in the HTML or in the system configuration (I've not tested the page under Linux yet...)?
Thank you very much in advance!