How To Play Any Video On Webpage

simplevideo-master

Code:

php
$node_obj = node_load(arg(1));
if(count($node_obj-field_upload_video) 0){
echo div class=’home-video-cont’ id=’player_new’;
$node_obj = node_load(arg(1));
$video_path = $node_obj-field_upload_video[‘und’][0][‘uri’];
$video_path = str_replace(‘public’,”,$video_path);
$files_path = ‘sitesdefaultfiles’;

video width=640 height=360 poster=poster.png id=test
source src=php echo $files_path.$video_path; type=videomp4
video
script src=httpwww.google.comjsapi type=textjavascriptscript
script type=textjavascript
google.load(jquery, 1);
script
script src=sitesallthemesfundedvisual_subthemesimpleVideo-masterjquery.simplevideo.js type=textjavascript charset=utf-8script
script type=textjavascript charset=utf-8
$(document).ready(function() {
$(‘video’).simpleVideo();
});
script

php }

Was this article helpful?

Related Articles