www.webdeveloper.com
Results 1 to 2 of 2

Thread: embed video html problem

  1. #1
    Join Date
    Aug 2014
    Posts
    2

    Post 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: https://www.youtube.com/user/mrbsclassonline

    HTML Code:
    <!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>400x800</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>
    Last edited by jedaisoul; 08-25-2014 at 05:09 PM. Reason: code tags added

  2. #2
    Join Date
    Dec 2013
    Posts
    10

    Cool Adding a YouTube Video with object

    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>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles