how do I upload a .wmv file that plays from my server without it downloading (or being downloadable) to viewers?

How do I upload a .wmv file to my server that plays from my server without it downloading (or being downloadable) to site viewers?
Who is Participating?
shaunakConnect With a Mentor Commented:
The better option is to convert the wmv to flv and then stream it. See the attached files. Put expressInstall.swf and swfobject_modified.js inside Scripts/ folder. Assuming that your video name is cool_video.flv

You want to stream the file.

Here is a link to more information about it:
JenaeRubinAuthor Commented:
This is where I landed...  My current coding does stream the video in IE ... but... I get a blank space above the tool bar when autoStart is set to false which I don't like... I'd rather it have a black box so people know to scroll down.  The other BIG problem is that this doesn't work in other browsers (Firefox, Safari... don't know about Bing).  Here's the code.  Thanks for helping!

            <!-- begin embedded WindowsMedia file... -->
            <table border='0' cellpadding='0' align="center">

                  <OBJECT id='mediaPlayer' width="600" height="488.35" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase=',1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
                  <param name='fileName' value="audio/junktest2.wmv">
                  <param name='animationatStart' value='true'>
                  <param name='transparentatStart' value='true'>
                  <param name='autoStart' value="false">
                  <param name='showControls' value="true">
                  <param name='loop' value="true">

                  <EMBED type='application/x-mplayer2' pluginspage='' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols="true" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="704" height="573" src="content/Video/cool_video.wmv" autostart="true" designtimesp='5311' loop="true">
                  <!-- ...end embedded WindowsMedia file --> <!-- begin link to launch external media player... -->
            <tr><td align='center'> </td></tr>
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

JenaeRubinAuthor Commented:
I cannot open the files you attached.  How do I convert wmv to flv?  
You can convert the videos with the help of any tool. I found:
Online :

Regarding files. Please find the attached Streaming file. Rename the extension to .zip and then extract Streaming to get the files.
JenaeRubinAuthor Commented:
Other than putting the .js file in a scripts folder, I don't understand what to do with the other files.  I put them in the root folder.  Now what?  Thanks.
Put cool_video.flv in the root folder and then open videostreaming.html in your browser and your video will start streaming
JenaeRubinAuthor Commented:
Where do I put the other files?
All files in root folder except expressInstall.swf and swfobject_modified.js. Put expressInstall.swf and swfobject_modified.js  inside Scripts/ folder

So your directory structure should look like this:


JenaeRubinAuthor Commented:
I saved and renamed an .flv file as cool_video.flv and placed it in the root directory of the folder with all the web/html files. Everything is set up EXACTLY as you indicated above.  However, the html file only shows a page saying you need to upload Adbove (screen shot attached).

Yes. That is because your browser doesnt have the updated flash plugin. Click on the button and express installer will update it and then after that your video will start steaming instead of downloading
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.