netscape doesn't load wmv file

  • emac
  • Born
  • Born
  • emac
  • Posts: 4

Post 3+ Months Ago

the site is http://www.thelastlaugfl.com when you view it in IE the link to the video in the pop-up works fine, i netscape it just shows you a bunch of jiberish. any suggestions. I have the page onLoad on an image in the menus which is in a javascript comand, does this have anything to do with it? I'm a newbie at best and just started doing this site so any help is greatly appreciated. thx
emac
  • Nunzio390
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Tharsis Ridge (Martian lowlands)

Post 3+ Months Ago

Quote:
when you view it in IE the link to the video in the pop-up works fin

Not true at all. Doesn't work for me in IE and may not work for others either. Why? Because you are merely linking to the WMV file itself and that causes the movie to either not play at all, play in whatever local media player is designated to play that file-type on the end-user's system, or "possibly" play within a browser window (no guarantees).

Instead of using what you have now, use Windows Media Player object and embed controls (for cross-browser compatability), to allow the video to play and work perfectly in all major browsers (eg: MSIE, Netscape/Mozilla, and Opera browsers). I use this technique at my Wacky Videos page at my site.

In your case I have created a working example (specifically for use at your site). This will open a new "pop-up" window with WMP object and embed controls, and will work in all browsers.

Working example for your site

OK. First thing you do is create a new page with this content...

Code: [ Select ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>JMFINAL</title>
<style type="text/css">
body {
padding-top:0;
padding-bottom:0;
padding-left:0;
padding-right:0;
margin-top:0;
margin-bottom:0;
margin-left:0;
margin-right:0;
background-color: #000000;
}
</style>
</head>
<body>
<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/ en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="256">
<param name="fileName" value="http://thelastlaughfl.com/JMFINAL.wmv">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-20">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://thelastlaughfl.com/JMFINAL.wmv" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-20>
</object>
</body>
</html>
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  5. <title>JMFINAL</title>
  6. <style type="text/css">
  7. body {
  8. padding-top:0;
  9. padding-bottom:0;
  10. padding-left:0;
  11. padding-right:0;
  12. margin-top:0;
  13. margin-bottom:0;
  14. margin-left:0;
  15. margin-right:0;
  16. background-color: #000000;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/ en/nsmp2inf.cab#Version=5,1,52,701"
  22. standby="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="256">
  23. <param name="fileName" value="http://thelastlaughfl.com/JMFINAL.wmv">
  24. <param name="animationatStart" value="true">
  25. <param name="transparentatStart" value="true">
  26. <param name="autoStart" value="true">
  27. <param name="showControls" value="true">
  28. <param name="Volume" value="-20">
  29. <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://thelastlaughfl.com/JMFINAL.wmv" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-20>
  30. </object>
  31. </body>
  32. </html>


Name the above new page to JMFINAL.htm.

Next, you need to change/modify a line within your http://www.thelastlaughfl.com/dvd.htm page.
Change this exsiting line...

Code: [ Select ]
<a href="http://thelastlaughfl.com/JMFINAL.wmv" target="_blank" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','Jackpoppic_r2_c2','Jackpoppic_r2_c2_f2.jpg','Jackpoppic_r2_c2_f4.jpg',1);" onClick="MM_nbGroup('down','navbar1','Jackpoppic_r2_c2','Jackpoppic_r2_c2_f3.jpg',1);">


to this instead...

Code: [ Select ]
<a href="http://thelastlaughfl.com/JMFINAL.htm" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','Jackpoppic_r2_c2','Jackpoppic_r2_c2_f2.jpg','Jackpoppic_r2_c2_f4.jpg',1);" onClick="window.open(this.href,'JMFINAL','top=50,left=50,width=280,height=257,toolbar=no,menubar=no,location=no, scrollbars=no,resizable=no');return false;">


Let me know when you have it all right so that I can remove the temp file I uploaded to my server.
  • Nunzio390
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Tharsis Ridge (Martian lowlands)

Post 3+ Months Ago

emac...

Received your PM. Glad to see it worked. :)

Temp files have been removed from my server.
  • vijayzutshi
  • Born
  • Born
  • vijayzutshi
  • Posts: 2

Post 3+ Months Ago

Hi Nunzio,

I think you can help me with. I have a web site on which I have embedded wmp and on the web page I have video links which play when I click on the links. This works perfectly on my computer but as soon as I load my web site and video clips on a remote server nothing works. I have the code as follows which I am using to do the above:-

The code is as follows:

<script type="text/javascript">
function play(media){
document.getElementById('mediaplayer').innerHTML=
'<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'
'type="application/x-oleobject" width="320" height="285">'
'<param name="showControls" value="false">'
'<param name="fileName" value="' media '">'
'<embed type="application/x-mplayer2" width="320" height="285"'
'showcontrols="false" src="' media '"><\/embed><\/object>'
}
</script>


<div id="mediaplayer"></div>
<ul id="menu">
<li><a onclick="play(this.href);return false" href="http://www.myurlname/afghan.avi">Source 1</a></li>
</ul>


Kindly help because I have tried many times and no one has been able to help me so far.


Thanks
Vijay

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 51 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.