note4

Thursday, September 6, 2018

2:46 AM
SAMPLE VIEW AS CUSTOM FILED Code Add Path video MP4 Or Without Path Link In PHPRUNNER




///..... Here The code


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//".$value;

$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>
";
}

0 comments: