<?php
// $base = $this->document->addScript(JURI::base());
// $this->document->addStyleSheet(JURI::base(true).'/components/com_xmovie/css/video-js.css');
// $this->document->addScript(JURI::base().'/components/com_xmovie/js/vjs/video.js');
// $this->document->addScript(JURI::base().'/components/com_xmovie/js/vjs/videojs-silverlight.js');
// $this->document->addScriptDeclaration('
// videojs.options.silverlight.xap = "video-js.xap";
// ');
?>
<!-- <video 
    id="my-video" 
    class="video-js vjs-default-skin vjs-big-play-centered" 
    controls 
    preload="auto" 
    width="<?php echo $this->size['width']; ?>" height="<?php echo $this->size['height']; ?>" 
    poster="<?php echo $this->posterLink; ?>"
    data-setup='{ "techOrder": ["silverlight"] }'>
    <source src="<?php echo $this->videoLink; ?>" type='video/x-ms-wmv'>
    <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that<a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video> -->

<OBJECT id='mediaPlayer' width="<?php echo $this->size['width']; ?>" height="<?php echo $this->size['height']; ?>" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
    <param name='fileName' value='<?php echo $this->videoLink; ?>'>
    <param name='animationatStart' value='true'>
    <param name='transparentatStart' value='true'>
    <param name='showControls' value='true'>
    <param name='loop' value='false'>
    <EMBED 
        type='application/x-mplayer2' 
        pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' 
        id='mediaPlayer' 
        name='mediaPlayer' 
        displaysize='4' 
        autosize='-1' 
        bgcolor='darkblue' 
        showcontrols='true' 
        showtracker='-1' 
        showdisplay='0' 
        showstatusbar='-1' 
        videoborder3d='-1' 
        width="<?php echo $this->size['width']; ?>"
        height="<?php echo $this->size['height']; ?>" 
        src='<?php echo $this->videoLink; ?>' 
        designtimesp='5311' 
        loop='false'>
    </EMBED>
</OBJECT>