<?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->addScriptDeclaration('
// videojs.options.flash.swf = "'.JURI::base().'/components/com_xmovie/js/vjs/video-js.swf";
// ');
?>
<!-- <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="{}">
    <source src="<?php echo $this->videoLink; ?>" type='application/x-shockwave-flash'>
    <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 classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='<?php echo $this->size['width']; ?>' height='<?php echo $this->size['height']; ?>' align='middle'>";
    <param name='allowScriptAccess' value='sameDomain' />
    <param name='allowFullScreen' value='true' />
    <param name='movie' value='<?php echo $this->videoLink; ?>' />
    <param name='quality' value='high' />
    <param name='wmode' value='transparent' />
    <param name='bgcolor' value='#ffffff' />
    <?php
        $flashvars = '';
        if ($this->item->flashvars != '') {
    ?>
    <param name='flashVars' value='<?php echo $this->item->flashvars; ?>' />
    <?php
            $flashvars = "flashvars='{$this->item->flashvars}' ";
        }
    ?>
    <embed 
        src='<?php echo $this->videoLink; ?>' 
        quality='high' 
        wmode='transparent' 
        bgcolor='#ffffff' 
        <?php echo $flashvars; ?> 
        width='<?php echo $this->size['width']; ?>' 
        height='<?php echo $this->size['height']; ?>' 
        align='middle' 
        allowScriptAccess='sameDomain' 
        allowFullScreen='false' 
        type='application/x-shockwave-flash' 
        pluginspage='http://www.macromedia.com/go/getflashplayer'>
    </embed>
</object>";