Embedding a web cam feed into a web page

To embed an object in HTML document, the object class ID is required. The class ID for Windows Media Player 7, 9, 10 and 11 is clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6.
Embedding a Windows Media File
The example below shows the code for embedding a Windows Media file. Note that it uses two tags: and. This is to enable maximum browser compatibility.You will need to set the file name (and other attributes if required) for both tags. Use true or false for the tag, 1 or 0 for the tag.

To get started, all you have to do is copy the code above into your web page and replacevideofilename.wmv with your own file name.
Embedding a Windows Media Stream
The example below shows the code for embedding a live Windows Media stream to one of Tatton Park’s farm web cam’s.
To get started, copy the code and replace the URL of the web cam feed with your own feed URL.

If you want to get more advanced you can alter the parameters below. Note that including extra features such as the status bar requires the player to have more height. Where applicable, we have shown the number of pixels required — if necessary, add this number of pixels to the height parameter.Autostart
If this value is set to true/1, the video will begin playback as soon as it has buffered. Otherwise it will wait for the user to pressPlay.ShowControls
If this value is set to true/1, the video transport controls will be shown (play,stop,pause, etc). If it is set to false/0, the controls will not be shown and the user will not be able to control playback at all. Obviously, in this case you would need to have autostart enabled or there will be no way to play the video.
Height: 46 pixelsShowStatusBar
If this value is set to true/1, the status bar is shown. This includes the buffering progress and playback status of the clip. Showing the status bar is a good idea as it shows the user how long they have to wait before the clip will be ready for playback
Height: 26 pixelsShowDisplay
When set to true/1, this displays information such as the file name.
Height: 74 pixels


One thought on “Embedding a web cam feed into a web page

  1. Easily, the article is really the best on this notable topic. I agree with your conclusions and will eagerly look forward to your incoming updates. Just saying thanks will not just be enough, for the exceptional clarity in your writing. I will immediately grab your rss feed to stay abreast of any updates. De lightful work and much success in your business efforts!

Leave a Reply

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s