/    Sign up×
Community /Pin to ProfileBookmark

embedded video doesn’t work in mozilla firefox

Hello,
I have a problem with embedding mediaplayer; the code works in IE, but not in mozilla firefox when I control movie with button – movie starts play when the button is clicked. I have read many posts in forums, but couldn’t solve it. I don’t want to use inner html, css, etc… I neeed a simple solution. Could anyone help me?
Thank you.
Here is the code:
<body>
<OBJECT
ID=”MediaPlayer”
WIDTH=”160″
HEIGHT=”130″
CLASSID=”CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95″
TYPE=”application/x-oleobject”>
<PARAM NAME=”FileName” VALUE=”_i.wmv”>
<PARAM NAME=”autostart” VALUE=”false”>
<PARAM NAME=”showcontrols” VALUE=”false”>
<embed
ID=”player”
WIDTH=”160″
HEIGHT=”130″

TYPE=”application/x-mplayer2″
SRC=”_
i.wmv”
AUTOSTART=”0″
SHOWCONTROLS=”0″>
</embed>
</OBJECT>

<IMG SRC=”rodyti1.bmp” NAME=”but”
onMouseOver=”document.but.src=’rodyti2.bmp'”
onMouseOut=”document.but.src=’rodyti1.bmp'”
onclick=”document.getElementById(‘player’).play()”>

</body>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@felgallMay 18.2006 — The most obvious thing I can see in your code is the use of bmp images which will only work in IE as bmp is not a valid web format for images.

Have you had a look to see what happens in Opera. That will help identify whether the problem is specific to Firefox.
×

Success!

Help @otaitau spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...