/    Sign up×
Community /Pin to ProfileBookmark

Mediaplayer in javascript

hi,
i am on working on my web. I am trying to play some wmv’s
on my web and i have a problem there with javascript:

cant find any way how to do, that when the page is loaded,
and the mediaplayer is set autoplay=false, i could load media player with first frame of my film in it. Could anyone help me?

Also, i would like to ask how to make Mozilla load mediaplayer.

Some source:

<OBJECT ID=”MediaPlayer”
WIDTH=”160″ HEIGHT=”130″
CLASSID=”CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95″
TYPE=”application/x-oleobject”>
<PARAM NAME=”FileName” VALUE=”_a.wmv”>
<PARAM NAME=”autostart” VALUE=”0″>
<PARAM NAME=”showcontrols” VALUE=”0″>

<EMBED TYPE=”application/x-mplayer2″
SRC=”_a.wmv”
NAME=”MediaPlayer”
WIDTH=”160″ HEIGHT=”130″
AUTOSTART=”0″ SHOWCONTROLS=”0″>
</EMBED>

</OBJECT>

<br>

<IMG SRC=”rodyti1.bmp” NAME=”button”
border=0
onMouseOver=”document.button.src=’rodyti2.bmp'”
onMouseOut=”document.button.src=’rodyti1.bmp'”
onclick=”document.MediaPlayer.play()”

>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @bruzgis 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...