<?php $ch = '"'; $dir = "videos/"; $i = 1; // if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if ($file == ".") { echo '..<br>'; } elseif ($file == "..") { echo '..<br>'; } else { echo ''.$file.'<br>'; echo '<br><video id="vid_' . $i . '" autobuffer preload="auto" style="width:200px;height:300px" src="videos/' . $file . '" önclick=' . $ch . 'add(this.src)' . $ch . '></video>'; $i = $i + 1; } } }closedir($dh); } ?>
autobuffer preload="auto"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)