Ejemplo n.º 1
0
        <link rel="stylesheet" href="css/normalize.css">
        <link rel="stylesheet" href="css/main.css">
        <script src="js/vendor/modernizr-2.6.2.min.js"></script>
        <script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
    </head>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->
        
        <!-- Add your site or application content here -->        
        <?php 
include_once 'simple_video_oembed.php';
$video_id = $_GET["video"];
$video = find_video_by_id($video_id);
$url = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$encoded_url = urlencode($url);
$oembed_url = "/oembed.php?url={$encoded_url}";
?>
        
        <div id="container">Loading the player ...</div>
        <script type="text/javascript">
            jwplayer("container").setup({
                flashplayer: "/jwplayer/player.swf",
                file: "<?php 
echo $video["file_url"];
?>
",
                image: "<?php 
echo $video["image_url"];
<?php

require_once "../includes/config.php";
s;
?>

<html>

<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<title>Get Element by id</title>
	<link rel="stylesheet" href="../css/basic.css" type="text/css" media="screen" title="no title" charset="utf-8">

</head>
<body id="template_do_not_edit" >
	
	<h1>Display video with ID 1028726445001</h1>

	<?php 
$itemsToDisplay = array("name", "thumbnailURL", "shortDescription");
find_video_by_id($itemsToDisplay, "1028726445001", "<div id='bc_display_items_in_list'>", "</div>", true);
//display_debug();
?>
	
</body>