/    Sign up×
Community /Pin to ProfileBookmark

Chromeless Player won’t work in Firefox

I am using three controls for an embedded chromeless player. Load Video, Pause and Play. All three controls work well in every browser except Firefox. For some reason my pause button won’t work. Any thoughts about why it isn’t working in Firefox?

Here’s the code:

[QUOTE]

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>

<html>

<head>

<title>Mary North Travel | Full Service Retail Travel Agency Specializing in Leisure, Corporate, and Cruise Travel</Title>

<link rel=”stylesheet” type=”text/css” href=”http://www.marynorth.com/intro/intro.css“>

</head>

<body>
<div align=”center”>
<table id=”introtab” align=”center”>
<col width=”75%”>
<tr>
<td>
<br></br>
<div align=”center”>
<script type=”text/javascript” src=”swfobject.js”></script>

<div id=”ytapiplayer”>
You need Flash player 8+ and JavaScript enabled to view this video.
</div>
<br></br>
<a href=”javascript:void(0);” onclick=”loadNewVideo(‘XXYKEfw49aQ’, 0);”><img src=”images/start.png” border=”none” height=”46″></a>
<a href=”javascript:void(0);” onclick=”pause();”><img src=”images/pause.png” border=”none” height=”46″></a>
<a href=”javascript:void(0);” onclick=”play();”><img src=”images/resume.png” border=”none” height=”46″></a>
<br></br>
</div>
<td>
<div align=”center”><a id=”corppic” href=”http://www.marynorth.com/corp_main.html”><img src=”images/corppic.jpg” border=”0″ height=”100″></a></div>
<br></br>
<a id=”corp” href=”http://www.marynorth.com/corp_main.html”><img src=”images/corp.png” border=”0″></a>
</td>
</tr>
</col>
</table>
</div>
<script type=”text/javascript”>

var params = { allowScriptAccess: “always” };
var atts = { id: “myytplayer” };
swfobject.embedSWF(“http://www.youtube.com/apiplayer?enablejsapi=1&version=3&playerapiid=ytplayer”,
“ytapiplayer”, “675”, “506”, “8”, null, null, params, atts);

function play() {
if (myytplayer) {
myytplayer.playVideo();
}
}

function pause () {
if (myytplayer) {
myytplayer.pauseVideo();
}
}

function stop() {
if (myytplayer) {
myytplayer.stopVideo();
}
}

function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById(“myytplayer”);
}

function loadNewVideo(id, startSeconds) {
var ytplayer = document.getElementById(“myytplayer”);
if (ytplayer) {
ytplayer.loadVideoById(id, startSeconds);
}
}

</script>
</div>
</body>

</html>

[/QUOTE]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @SoapKing 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.3,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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