<?php
require_once '../include/header.php';
require_once '../lib/Kendo/Autoload.php';

$media = new \Kendo\UI\MediaPlayerMedia('MediaPlayerMedia') ;
$media ->source("https://www.youtube.com/watch?v=tc3xhD24iTU");
$media ->title("Recap of Progress Ringing The Bell at Nasdaq (2016)");
$mediaPlayer = new \Kendo\UI\MediaPlayer('MediaPlayer') ;
$mediaPlayer->media($media);
$mediaPlayer->autoPlay(true);
$mediaPlayer->navigatable(true);
?>

<div class="demo-section k-content wide" style="width: 644px;">
<?php
echo $mediaPlayer->render();
?>
</div>

<?php require_once '../include/footer.php'; ?>

<style>
    .k-mediaplayer {
        width: 640px;
        height: 360px;
    }
</style>