/    Sign up×
Community /Pin to ProfileBookmark

Firefox Not Playing Video

The following code below does not play it gives me an error:

HTML PAGE

[CODE]
<object classid=”clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95″ height=”180″ width=”240″ border=0 id=”WMPlay” name=”WMPlay” standby=”Loading Microsoft® Windows® Media Player components…” type=”application/x-oleobject”>
<PARAM NAME=”ShowControls” VALUE=”0″>
<PARAM NAME=”ShowDisplay” VALUE=”0″>
<PARAM NAME=”ShowStatusBar” VALUE=”0″>
<PARAM name=”FileName” value=””>
<PARAM name=”EventNumber” value=”1″>
</object>
[/CODE]

Javascript Function

[CODE]
function videoStart(){
if (bWin32IE == true) {
WMPlay.FileName = videoFile;
WMPlay.play();
} else {
document.WMPlay.FileName = videoFile;
alert(document.WMPlay.FileName);
document.WMPlay.Play();
}
}
[/CODE]

Error: document.getElementById(“WMPlay”).Play is not a function

Any ideas?

Thanks,
Josh

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Jster 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.8,
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,
)...