Results 1 to 2 of 2

Thread: embed video html problem

  1. #1
    Join Date
    Aug 2014

    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.


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

    HTML Code:
    <!doctype html>
    <html lang="en">
    <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">
    				margin: 0;
    				padding: 0;
    		<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>
    		<script type="text/javascript" src="../src/ytv.js"></script>
    			window.onload = function(){
    				window.controller = new YTV('frame', {
    					user: 'MrBsClassOnline',
    					accent: 'yellow'
    Last edited by jedaisoul; 08-25-2014 at 06:09 PM. Reason: code tags added

  2. #2
    Join Date
    Dec 2013

    Cool Adding a YouTube Video with object

    Adding a YouTube Video with object
    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">
      <title>Adding a YouTube Video</title>
    <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>

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