<?php
$URL = $config['url']['root']."/?module=custom_actions&action=video_player&method=stream&path=".S::forURL($this->data['relativePath']);
?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title><?php echo \S::safeHTML(\S::forHTML($this->data['fileName']));?></title>
	<style>
		body {
			border: 0;
			margin: 0;
			padding: 0;
			overflow: hidden;
		}
		video {
			width: 100%;
			height:100%;
		}
	</style>
</head>
<body>
<video controls="controls" autoplay="autoplay" preload="auto" src="<?php echo $URL?>" <?php
$mime = \FM::mime_type($this->data['fileName']);
if ($mime) {
	echo 'type="'.$mime.'"';
}
?>></video>
</body>
</html>