Sample Code video Display PHPRUNNER

Sample Code video Display PHPRUNNER

if (strpos($value, 'http') !== false) {
   // $value =  'link';
 
      $value ="

<video class=\"video\" width=\"300\" height=\"200\" poster=\"v.jpg\" controls=\"controls\" autoplay=\"autoplay\" loop=\"loop\">
<source src='".$value."' type=\"video/mp4\">
Your browser does not support the video tag.
</video>
";



}
else {
$value = "files/movies/".$value;
 // $value =  'files/movies;
   $value ="

<video class=\"video\" width=\"300\" height=\"200\" poster=\"v.jpg\" controls=\"controls\" autoplay=\"autoplay\" loop=\"loop\">
<source src='".$value."' type='video/mp4;codecs=\"avc1.42E01E, mp4a.40.2\"'/>
Your browser does not support the video tag.
</video>
";
}

Comments