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>
";
}
///..... 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:
Post a Comment