how to create a link to wmv

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

how to create a link to wmv

Post 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
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: how to create a link to wmv

Post by josh »

embed the player using html embed tags
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: how to create a link to wmv

Post 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>
 
 
Post Reply