Syed Jahanzaib Personal Blog to Share Knowledge !

October 4, 2011

Howto Embed Media File in HTML Page

Filed under: Microsoft Related — Tags: , , , , , — Syed Jahanzaib / Pinochio~:) @ 2:19 PM

You can stream any local media file / live stream via Firefox Browser.
For example you can create a list of Video Files and link it on your web site, So when user click on the video link, instead of downloading, it will play directly via browser. This is just an idea, you can create exciting web pages with this logic. It is highly recommended to install VLC media player in Full Installation mode at Client.


To play Video via VLC plugin, Use the following code.

<embed type="application/x-vlc-plugin" name="VLC" autoplay="yes" loop="yes" volume="100" width="640" height="480" target="d:\1.flv">

(Replace 1.flv with your media file)

To play Video via Windows Media Player – WMP  plugin, Use the following code.

<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="640"

<param name="Filename" value="d:\1.flv">
<param name="AutoStart" value="true">
<param name="ShowControls" value="true">
<param name="BufferingTime" value="2">
<param name="ShowStatusBar" value="true">
<param name="AutoSize" value="true">
<param name="InvokeURLs" value="false">
<embed src="d:\1.flv" type="application/x-mplayer2" autostart="1" enabled="1" showstatusbar="1"
showdisplay="1" showcontrols="1" pluginspage=""
width="480" height="360"></embed>

(Replace 1.flv with your media file)


Embeded File Played Via Firefox Browser

Embeded File Played Via Firefox Browser


  1. Hi Syed, I am writing to thank you for the resources you offer here. Sincerely this is the most resourceful networking blog I know. I have an implementation of TV streaming on my wired network powered by vlc. VLC picks the TV signal from a DVB decoder through a TV tuner, on a windows 7 running machine. I have implemented a login feature for users to login to access the service: (using tomcat6 server and wamp server for the database). I have embedded the stream(localstream.asx) on a page accessible only after login. The problem is that vlc streams are transparent and can be accessed via vlc by users with knowledge of the same.
    Network Details:
    Router: Mikrotik RB750G. Network:
    Servers: TV server(OS: windows 7,with tv tuner input+tomcat6+wamp)
    Radius Server: Running dma softlab
    Dolaradius Server: On my laptop:purely experimental
    Question 1:
    Is there a way to restrict access to the stream to only registered users in db.
    Question 2:
    is there a way to exploit a radius servers to allow access to the Tv server, url:

    Any help will be highly appreciated

    Comment by keter — November 19, 2011 @ 2:25 PM

  2. plz sir tel me how we ad a coment box or leave a coment type in our web page in html or adobe dremware thankx

    Comment by obaid — February 8, 2012 @ 11:02 AM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: