/    Sign up×
Community /Pin to ProfileBookmark

embed video html problem

I am having difficulty playing videos from my playlist using the html code below. When I use the below code, along with other files (java scripts) that work with my html page, I see see a rectangle black box. This code seems to work with other youtube users names (wtam69, DiscoveryWeather, etc.). I have no clue what I have done wrong. I wan’t the code below to display the video with a sidebar.

Thanks,
Kevin

Other information: Videos are listed as public
Username: MrBsClassOnline
YouTube Channel: [url]https://www.youtube.com/user/mrbsclassonline[/url]

[code=html]
<!doctype html>
<html lang=”en”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<title>YouTube TV</title>
<link href=”../src/ytv.css” type=”text/css” rel=”stylesheet” />
<link href=”assets/demo.css” type=”text/css” rel=”stylesheet” />
<style type=”text/css”>
body{
margin: 0;
padding: 0;
}
</style>
</head>
<body>

<div id=”frame”></div>

<div class=”description”>
<p>This demo is done with a very minimal amount of options used.</p>
<p>The <code>#frame</code> element has dimensions of <code>400×800</code> before applying Youtube TV</p>
</div>

<script type=”text/javascript” src=”../src/ytv.js”></script>
<script>
window.onload = function(){

window.controller = new YTV(‘frame’, {
user: ‘MrBsClassOnline’,
accent: ‘yellow’
});

};
</script>
</body>
</html>
[/code]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@happycodingsSep 03.2014 — Adding a YouTube Video with object
[CODE]Adding a YouTube Video with object

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<title>Adding a YouTube Video</title>
</head>

<body>

<h1>Embedding a YouTube Video</h1>

<object width="1280" height="720"><param name="movie" value="http://www.youtube.com/watch?v=bnkI8tBNrPY"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=bnkI8tBNrPY" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="1280" height="720"></embed></object>


</body>

</html>

[/CODE]
×

Success!

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