Tuesday, July 29, 2008
Monday, July 28, 2008
Word of the Day
| |
| Definition: | A broad, flat-topped elevation with one or more clifflike sides, common in the southwest United States. |
| Synonyms: | table |
Article of the Day
src="http://img.tfd.com/daily/article-top.js">
This Day in History
src="http://img.tfd.com/daily/history-top.js">
Today's Birthday
src="http://img.tfd.com/daily/birthday-top.js">
Quote of the Day
In individuals, insanity is rare; but in groups, parties, nations, and epochs it is the rule. Friedrich Nietzsche (1844-1900) |
Spelling Bee
Daily
Word of the Day
| |
| Definition: | A broad, flat-topped elevation with one or more clifflike sides, common in the southwest United States. |
| Synonyms: | table |
Quote of the Day
In individuals, insanity is rare; but in groups, parties, nations, and epochs it is the rule. Friedrich Nietzsche (1844-1900) |
Wednesday, July 16, 2008
Streaming Videos
To embed flash video files, you can either download the flv or swf flash video to your hard drive, convert it to avi, wmv or mov format and then upload it to your Youtube account. Then you can use the Youtube supplied HTML code to embed that video in your webpage or blog. The video will play wrapped inside the Youtube or Google Video player skin.
The above approach works but is clearly not the best way to do things. What if the original video is updated - then you will have to revisit the whole encoding-decoding cycle again. Secondly, there will be considerable loss in video quality when it is converted from one format to another and Youtube is definitely not the best place to see high resolution video clips. They will degrade it to 320x240 size clip.
So here's a very easy way for embedding flash videos in your website without loosing any quality. Also you won't have to download the video to your own server - you can embed the flash video player in your site and it will stream the video [or play directly] from the source website [you might want to obtain permission from the content host since you will be consuming his bandwidth]
To do this, just copy-paste the following HTML snippet in your blog template and replace the height, width and streamName parameters with real values [you can find the video size (dimensions) and URL of the flash video by looking at the HTML source code of the webpage where the video is originally embedded]

Incase you would like the video to start only when the site visitor hits the play button, replace autoPlay=true with autoPlay=false. Once the video track finishes playing, the cue marker would return to the original position. You can disable this by setting autorewind=false.
The above approach works but is clearly not the best way to do things. What if the original video is updated - then you will have to revisit the whole encoding-decoding cycle again. Secondly, there will be considerable loss in video quality when it is converted from one format to another and Youtube is definitely not the best place to see high resolution video clips. They will degrade it to 320x240 size clip.
So here's a very easy way for embedding flash videos in your website without loosing any quality. Also you won't have to download the video to your own server - you can embed the flash video player in your site and it will stream the video [or play directly] from the source website [you might want to obtain permission from the content host since you will be consuming his bandwidth]
To do this, just copy-paste the following HTML snippet in your blog template and replace the height, width and streamName parameters with real values [you can find the video size (dimensions) and URL of the flash video by looking at the HTML source code of the webpage where the video is originally embedded]
Incase you would like the video to start only when the site visitor hits the play button, replace autoPlay=true with autoPlay=false. Once the video track finishes playing, the cue marker would return to the original position. You can disable this by setting autorewind=false.
Subscribe to:
Posts (Atom)