Annoyed yet that the streaming video just went on without pressing play? Go ahead. Just hit stop on the Media Player......
I have spent the whole afternoon fooling around with embedded video codes and I didn't get anything else done. Why? Don't ask me. I just got it into my head that I really don't like copying YouTube videos into my commercial websites because they really make it look cheap. Besides, some of the videos that I like are not on YouTube.
I finally decided to hack the hacks that I found on the web because they just don't look nice enough to go on my websites. I am so picky about design and the overall look it adds. I do believe that if they are not perfect, they are not good enough.
First I decided to embed a promotional video file from Windstar Cruises http://windstarcruises.com/images/videos/SiB_high.wmv
I thought I could just get away with using an iframe code to embed it on my blog, but the bloody thing just kept on popping out instead of getting imbedded. So I decided to write this code instead:
I know I should really be using the object code instead of an embed code. But, oh well, I pride myself on workable shortcuts without having to mess with parameter attributes.
As this is being used on a commercial blog, I have programmed the media player to play once (Loop) on at pageload (Autoplay) using cached file if this is not their first visit (Cache) and a pop up window of the video if clicked on (Href).
It does look better than Google or YouTube and I am very happy with the result.
I have spent the whole afternoon fooling around with embedded video codes and I didn't get anything else done. Why? Don't ask me. I just got it into my head that I really don't like copying YouTube videos into my commercial websites because they really make it look cheap. Besides, some of the videos that I like are not on YouTube.
I finally decided to hack the hacks that I found on the web because they just don't look nice enough to go on my websites. I am so picky about design and the overall look it adds. I do believe that if they are not perfect, they are not good enough.
First I decided to embed a promotional video file from Windstar Cruises http://windstarcruises.com/images/videos/SiB_high.wmv
I thought I could just get away with using an iframe code to embed it on my blog, but the bloody thing just kept on popping out instead of getting imbedded. So I decided to write this code instead:
I know I should really be using the object code instead of an embed code. But, oh well, I pride myself on workable shortcuts without having to mess with parameter attributes.
As this is being used on a commercial blog, I have programmed the media player to play once (Loop) on at pageload (Autoplay) using cached file if this is not their first visit (Cache) and a pop up window of the video if clicked on (Href).
It does look better than Google or YouTube and I am very happy with the result.




posted by The Imaginary Diva at 10:33 PM