Click to See Complete Forum and Search --> : HELP, Embedding Nightmare...
jesswartz
04-03-2006, 07:11 PM
It just won't play. What's wrong? I'm SO frustrated!
Here's the script:
<object id="MediaPlayer1" width=80 height=80
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">
<param name="shadowrun1.mpg" value="Puppies/SkyShadow2005/Puppy Movies/shadowrun1.mpg">
<param name="ShowStatusBar" value="false">
<param name="showcontrols" value="false">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="Puppies/SkyShadow2005/Puppy Movies/shadowrun1.mpg"
width=80
height=80
showcontrols" value="false"
showstatusbar=false>
</embed>
</object>
TiGGi
04-04-2006, 09:52 AM
it's proly your file path,
lets say folder where you have your html file is web then according to your code the swf file shoudl be in /web/Puppies/SkyShadow2005/Puppy Movies/ folder, so is it?
jesswartz
04-05-2006, 06:09 PM
it's proly your file path,
lets say folder where you have your html file is web then according to your code the swf file shoudl be in /web/Puppies/SkyShadow2005/Puppy Movies/ folder, so is it?
No, I don't want to use a swf file they're too big. I want to stay away from flash and quicktime completely. I just want the mpg file to play in media player with no controls on a loop.
Feldon
04-27-2006, 06:11 PM
I'm not sure but I think you're first parameter:
<param name="shadowrun1.mpg" value="Puppies/SkyShadow2005/Puppy Movies/shadowrun1.mpg">
Is supposed to be:
<param name="fileName" value="Puppies/SkyShadow2005/Puppy Movies/shadowrun1.mpg">
But you've probably already figured that out, its been a couple weeks.
It just won't play. What's wrong? I'm SO frustrated!
Here's the script:
<object id="MediaPlayer1" width=80 height=80
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">
<param name="shadowrun1.mpg" value="Puppies/SkyShadow2005/Puppy Movies/shadowrun1.mpg">
<param name="ShowStatusBar" value="false">
<param name="showcontrols" value="false">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="Puppies/SkyShadow2005/Puppy Movies/shadowrun1.mpg"
width=80
height=80
showcontrols" value="false"
showstatusbar=false>
</embed>
</object>
Where did you get that script? Here is one that I posted for someone else using WMV files. Copy everything below the word EXAMPLE: and put it in a text file and change out the values you need to change. The line in blue is what you'll need to change.
Also you mentioned that you wanted to keep the file small by using mpegs. WMV files will take an mpeg down to 25% of it's original size.
You will also notice that I'm using the complete path which will also help if its a path problem.
Let me know if this works for you.
EXAMPLE:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>The Name Of Your Video</title>
</head>
<body>
<body>
<OBJECT id="VIDEO"
style="position:absolute; left:19;top:19;width:480px; height:360px"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="http://yourdomain.com/a sub folder/NameOfVideo.wmv" ref>
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM name="uiMode" value="mini">
<PARAM name="PlayCount" value="1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="80">
<param name="mute" value="0">
<param name="stretchToFit" value="1">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
</OBJECT>
</body>
</html>