Monday, November 16, 2009

FLV Player - make invisible bg


Hi, Im making a test site where I want to include webstunning flashplayer. How can I make the player invisible? i want to only make it visible when you hit a thumbnail.


Answer:


Hi,
add this line of code at the end of your page to make the player invisible

<script type="text/javascript">document.getElementById('webstunning_video_player').style.display='none'</script>

Add this script to your html thumbnails:

document.getElementById('webstunning_video_player').style.display='block';setTimeout('swfobject.getObjectById(\'WSplayer\').JS_PlayVideoNum(1)',200)
- to play video #1

document.getElementById('webstunning_video_player').style.display='block';setTimeout('swfobject.getObjectById(\'WSplayer\').JS_PlayVideoNum(2)',200)
- to play video #2

document.getElementById('webstunning_video_player').style.display='block';setTimeout('swfobject.getObjectById(\'WSplayer\').JS_PlayVideoNum(3)',200)
- to play video #3

and so on...

Example:

<a onmouseover="MM_swapImage('Image80','','images/thumbs/over/kngf_over.jpg',1)"
onmouseout="MM_swapImgRestore()"
href="javascript:document.getElementById('webstunning_video_player').style.display='block';setTimeout('swfobject.getObjectById(\'WSplayer\').JS_PlayVideoNum(1)',200)">
<img width="90" height="70" border="0" name="Image80"
src="images/thumbs/corporate/kngf.jpg"/>
</a>

Regards
Dmitry
webstunning.com

Tuesday, November 10, 2009

Error message FLV File not found

player shows error:

ERROR-URL NOT FOUND
http://www.mydomain.com/demo_flv

The file is there in the root of the website in the server... no change from my development pc which.

I don't have such error when opening the website from my development pc.


Answer:


FLV is a relatively new file format used for Adobe Flash video files. By default, the flv type does not work with windows 2003 server IIS.
Have a look at the technote Windows 2003 Server does not stream FLV videos on Adobe’s website.

Here’s the short story:

With IIS 6.0, Microsoft changed the way streaming media is handled. Previous versions of IIS did not require any modification to stream Flash Video. Microsoft IIS 6.0, the default web server that ships with Windows 2003, requires a MIME type to recognize that FLV files are streamed media.

So, in order to get streaming to work, you need to add a custom MIME type in the Internet Information Services Manager. Just add a MIME type for the .flv extension with a value of flv-application/octet-stream.