Page 1 of 1

how to create a link to wmv

Posted: Mon Sep 08, 2008 10:18 pm
by yacahuma
This is more of an html question

I have a php script that creates links to wmv files

Code: Select all

 
$stream   = "http://server:88/{$video_station}/{$video_file}"; 
    echo "<li><a href='{$stream}'>{$video_file}</a></li>";
 
The problem is that when I click on the link the page changes to a blank page and then windows media player open

Is there anyway(there must be) to just click on the link, windows media player open and the page stays in the same place?

Thank you

Re: how to create a link to wmv

Posted: Mon Sep 08, 2008 11:15 pm
by josh
embed the player using html embed tags

Re: how to create a link to wmv

Posted: Tue Sep 09, 2008 5:50 am
by yacahuma
Thank you

I found a good link for embedded video
http://www.hunlock.com/blogs/Everything ... _Embedding

Also

Code: Select all

 
<script>
function playvideo(file)
{
OpenWindow=window.open("", "newwin", "height=250,width=250,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<html>")
OpenWindow.document.write("<title>MediaTracker</title>")
OpenWindow.document.write("<bofy bgcolor='000000'>")
OpenWindow.document.write("<embed src=" + file+" autostart='true'></embed>")
OpenWindow.document.write("</html>")
OpenWindow.document.close()
self.name="main"
}
</script>