206 lines
16 KiB
PHP
206 lines
16 KiB
PHP
<?php
|
|
//error_reporting(E_ALL);
|
|
//ini_set('display_errors', true);
|
|
|
|
//ini_set("log_errors", 1);
|
|
//ini_set("error_log", $serverpath."public_html/log/error_log.txt");
|
|
|
|
|
|
|
|
require("../dbinclude.php");
|
|
require("../class_video.php");
|
|
|
|
$query=$database->database_query("SELECT user_id FROM se_users WHERE user_username='".$database->database_real_escape_string($_GET["user"])."'");
|
|
$row=$database->database_fetch_array($query);
|
|
|
|
|
|
$video = new se_video($row["user_id"]);
|
|
$video_info['video_dir'] = $video->video_dir();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body{margin:0px;}
|
|
#video{width:100%;}
|
|
.ult_vp_playButtonScreen, .ult_vp_embedBtn {display:none!important;}
|
|
.elite_vp_playButtonScreen {display:none!important;}
|
|
</style>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<link rel="stylesheet" href="css/elite.css" type="text/css" media="screen"/>
|
|
<link rel="stylesheet" href="css/elite-font-awesome.css" type="text/css">
|
|
<link rel="stylesheet" href="css/jquery.mCustomScrollbar.css" type="text/css">
|
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
|
<script src="js/froogaloop.js" type="text/javascript"></script>
|
|
<script src="js/jquery.mCustomScrollbar.js" type="text/javascript"></script>
|
|
<script src="js/THREEx.FullScreen.js"></script>
|
|
<script src="js/videoPlayer.js" type="text/javascript"></script>
|
|
<script src="js/Playlist.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
$(document).ready(function($)
|
|
{
|
|
videoPlayer =jQuery("#Elite_video_player").Video({ //ALL PLUGIN OPTIONS
|
|
googleAnalyticsTrackingCode: "",//track video events using Google Analytics (how may times video is played, downloaded, etc.)
|
|
instanceName:"player1", //name of the player instance
|
|
instanceTheme:"dark", //choose video player theme: "dark", "light"
|
|
autohideControls:500, //autohide HTML5 player controls
|
|
hideControlsOnMouseOut:"No", //hide HTML5 player controls on mouse out of the player: "Yes","No"
|
|
playerLayout: "fitToContainer", //Select player layout: "fitToContainer" (responsive mode), "fixedSize" (fixed mode), "fitToBrowser" (fill the browser mode)
|
|
videoPlayerWidth:900, //fixed total player width (only for playerLayout: "fixedSize")
|
|
videoPlayerHeight:572, //fixed total player height (only for playerLayout: "fixedSize")
|
|
videoRatio: 16/9, //set your video ratio (calculate video width/video height)
|
|
videoRatioStretch: false, //adjust video ratio for case when playlist is "opened" : true/false
|
|
iOSPlaysinline: true, //on iOS device: play videos inline (like on desktop) or in Fullscreen by default: true/false
|
|
floatPlayerOutsideViewport: false, //show Sticky player if video player is not in viewport when scrolling through page
|
|
lightBox:false, //lightbox mode :true/false
|
|
lightBoxAutoplay: false, //autoplay video when lightbox opens: true/false
|
|
lightBoxThumbnail:"<?php echo "../../".$video_info['video_dir'].$_GET["video_id"]."_thumb.jpg";?>", //lightbox thumbnail image
|
|
lightBoxThumbnailWidth: 660, //lightbox thumbnail image width
|
|
lightBoxThumbnailHeight: 372, //lightbox thumbnail image height
|
|
lightBoxCloseOnOutsideClick: true, //close lightbox when clicked outside of player area
|
|
playlist:"Off", //choose playlist type: "Right playlist", "Bottom playlist", "Off"
|
|
playlistScrollType:"light", //choose scrollbar type: "light","minimal","light-2","light-3","light-thick","light-thin","inset","inset-2","inset-3","rounded","rounded-dots","3d","dark","minimal-dark","dark-2","dark-3","dark-thick","dark-thin","inset-dark","inset-2-dark","inset-3-dark","rounded-dark","rounded-dots-dark","3d-dark","3d-thick-dark"
|
|
playlistBehaviourOnPageload:"Closed",//choose playlist behaviour when webpage loads: "closed", "opened (default)" (not apply to Vimeo player)
|
|
autoplay:false, //autoplay when webpage loads: true/false
|
|
colorAccent:"#cc181e", //plugin colors accent (hexadecimal or RGB value - http://www.colorpicker.com/)
|
|
vimeoColor:"00adef", //set "hexadecimal value", default vimeo color is "00adef"
|
|
youtubeControls:"custom controls", //choose youtube player controls: "custom controls", "default controls"
|
|
youtubeSkin:"dark", //default youtube controls theme: light, dark
|
|
youtubeColor:"red", //default youtube controls bar color: red, white
|
|
youtubeQuality:"default", //choose youtube quality: "small", "medium", "large", "hd720", "hd1080", "highres", "default"
|
|
youtubeShowRelatedVideos:"No", //choose to show youtube related videos when video finish: "Yes", "No" (onFinish:"Stop video" needs to be enabled)
|
|
videoPlayerShadow:"effect1", //choose player shadow: "effect1" , "effect2", "effect3", "effect4", "effect5", "effect6", "off"
|
|
loadRandomVideoOnStart:"No", //choose to load random video when webpage loads: "Yes", "No"
|
|
shuffle:"No", //choose to shuffle videos when playing one after another: "Yes", "No" (shuffle button enabled/disabled on start)
|
|
posterImg:"<?php echo "../../".$video_info['video_dir'].$_GET["video_id"]."_thumb.jpg";?>",//player poster image
|
|
posterImgOnVideoFinish:"<?php echo "../../".$video_info['video_dir'].$_GET["video_id"]."_thumb.jpg";?>",//player poster image on video finish (if enabled onFinish:"Stop video")
|
|
onFinish:"Stop video", //"Play next video","Restart video", "Stop video",
|
|
nowPlayingText:"No", //enable disable now playing title: "Yes","No"
|
|
preloadSelfHosted:"none", //choose preload buffer for self hosted mp4 videos (video type HTML5): "none", "auto"
|
|
rightClickMenu:false, //enable/disable right click over HTML5 player: true/false
|
|
hideVideoSource:true, //option to hide self hosted video sources (to prevent users from download/steal your videos): true/false
|
|
showAllControls:true, //enable/disable all HTML5 player controls: true/false
|
|
allowSkipAd:true, //enable/disable "Skip advertisement" option: true/false
|
|
infoShow:"No", //enable/disable info option: "Yes","No"
|
|
shareShow:"No", //enable/disable all share options: "Yes","No"
|
|
facebookShow:"No", //enable/disable facebook option individually: "Yes","No"
|
|
twitterShow:"No", //enable/disable twitter option individually: "Yes","No"
|
|
mailShow:"No", //enable/disable mail option individually: "Yes","No"
|
|
facebookShareName:"", //first parametar of facebook share in facebook feed dialog is title
|
|
facebookShareLink:"", //second parametar of facebook share in facebook feed dialog is link below title
|
|
facebookShareDescription:"", //third parametar of facebook share in facebook feed dialog is description below link
|
|
facebookSharePicture:"", //fourth parametar in facebook feed dialog is picture on left side
|
|
twitterText:"", //first parametar of twitter share in twitter feed dialog is text
|
|
twitterLink:"", //second parametar of twitter share in twitter feed dialog is link
|
|
twitterHashtags:"", //third parametar of twitter share in twitter feed dialog is hashtag
|
|
twitterVia:"", //fourth parametar of twitter share in twitter feed dialog is via (@)
|
|
googlePlus:"", //share link over Google +
|
|
logoShow:"Yes", //"Yes","No"
|
|
logoClickable:"No", //"Yes","No"
|
|
logoPath:"https://bateworld.com/images/watermark1.png", //path to logo image
|
|
logoGoToLink:"http://codecanyon.net/", //redirect to page when logo clicked
|
|
logoPosition:"bottom-left", //choose logo position: "bottom-right","bottom-left"
|
|
embedShow:"No", //enable/disable embed option: "Yes","No"
|
|
embedCodeSrc:"www.yourwebsite.com/videoplayer/index.html", //path to your video player on server
|
|
embedCodeW:"746", //embed player code width
|
|
embedCodeH:"420", //embed player code height
|
|
embedShareLink:"www.yourwebsite.com/videoplayer/index.html", //direct link to your site (or any other URL) you want to be "shared"
|
|
showGlobalPrerollAds: false, //enable/disable 'global' ads and overwrite each individual ad in 'videos' :true/false
|
|
globalPrerollAds: "url1;url2;url3;url4;url5",//set 'pool' of url's that are separated by ; (global prerolls will play randomly)
|
|
globalPrerollAdsSkipTimer: 5, //skip global advertisement seconds
|
|
globalPrerollAdsGotoLink: "",//global advertisement goto link
|
|
advertisementTitle:"", //translate "Advertisement" title to your language
|
|
skipAdvertisementText:"", //translate "Skip advertisement" button to your language
|
|
skipAdText:"", //translate "You can skip this ad in" counter to your language
|
|
playBtnTooltipTxt:"Play", //translate "Play" to your language
|
|
pauseBtnTooltipTxt:"Pause", //translate "Pause" to your language
|
|
rewindBtnTooltipTxt:"Rewind", //translate "Rewind" to your language
|
|
downloadVideoBtnTooltipTxt:"Download video", //translate "Download video" to your language
|
|
qualityBtnOpenedTooltipTxt:"Close settings", //translate "Close settings" to your language
|
|
qualityBtnClosedTooltipTxt:"Settings", //translate "Settings" to your language
|
|
muteBtnTooltipTxt:"Mute", //translate "Mute" to your language
|
|
unmuteBtnTooltipTxt:"Unmute", //translate "Unmute" to your language
|
|
fullscreenBtnTooltipTxt:"Fullscreen", //translate "Fullscreen" to your language
|
|
exitFullscreenBtnTooltipTxt:"Exit fullscreen",//translate "Exit fullscreen" to your language
|
|
infoBtnTooltipTxt:"Show info", //translate "Show info" to your language
|
|
embedBtnTooltipTxt:"Embed", //translate "Embed" to your language
|
|
shareBtnTooltipTxt:"Share", //translate "Share" to your language
|
|
volumeTooltipTxt:"Volume", //translate "Volume" to your language
|
|
playlistBtnClosedTooltipTxt:"Show playlist", //translate "Show playlist" to your language
|
|
playlistBtnOpenedTooltipTxt:"Hide playlist", //translate "Exit fullscreen" to your language
|
|
facebookBtnTooltipTxt:"Share on Facebook", //translate "Share on Facebook" to your language
|
|
twitterBtnTooltipTxt:"Share on Twitter", //translate "Share on Twitter" to your language
|
|
googlePlusBtnTooltipTxt:"Share on Google+", //translate "Share on Google+" to your language
|
|
lastBtnTooltipTxt:"Go to last video", //translate "Go to last video" to your language
|
|
firstBtnTooltipTxt:"Go to first video", //translate "Go to first video" to your language
|
|
nextBtnTooltipTxt:"Play next video", //translate "Play next video" to your language
|
|
previousBtnTooltipTxt:"Play previous video", //translate "Play previous video" to your language
|
|
shuffleBtnOnTooltipTxt:"Shuffle on", //translate "Shuffle on" to your language
|
|
shuffleBtnOffTooltipTxt:"Shuffle off", //translate "Shuffle off" to your language
|
|
nowPlayingTooltipTxt:"NOW PLAYING", //translate "NOW PLAYING" to your language
|
|
embedWindowTitle1:"SHARE THIS PLAYER:", //translate "SHARE THIS PLAYER:" to your language
|
|
embedWindowTitle2:"EMBED THIS VIDEO IN YOUR SITE:",//translate "EMBED THIS VIDEO IN YOUR SITE:" to your language
|
|
embedWindowTitle3:"SHARE CURRENT VIDEO:", //translate "SHARE CURRENT VIDEO:" to your language
|
|
copyTxt:"Copy",
|
|
copiedTxt:"Copied!",
|
|
youtubePlaylistID:"", //automatic youtube playlist ID (leave blank "" if you want to use manual playlist) LL4qbSRobYCjvwo4FCQFrJ4g
|
|
youtubeChannelID:"", //automatic youtube channel ID (leave blank "" if you want to use manual playlist) UCHqaLr9a9M7g9QN6xem9HcQ
|
|
|
|
//manual playlist
|
|
videos:[
|
|
{
|
|
videoType:"HTML5", //choose video type: "HTML5", "youtube", "vimeo", "image"
|
|
title:"Youtube video", //video title
|
|
youtubeID:"0dJO0HyE8xE", //last part if the URL https://www.youtube.com/watch?v=0dJO0HyE8xE
|
|
vimeoID:"119641053", //last part of the URL http://vimeo.com/119641053
|
|
mp4:"<?php echo "../../".$video_info['video_dir'].$_GET["video_id"].".mp4";?>", //HTML5 video mp4 url
|
|
enable_mp4_download:"no", //enable download button for self hosted videos: "yes","no"
|
|
imageUrl:"<?php echo "../../".$video_info['video_dir'].$_GET["video_id"]."_thumb.jpg";?>", //display image instead of playing video
|
|
imageTimer:4, //set time how long image will display
|
|
prerollAD:"no", //show pre-roll "yes","no"
|
|
prerollGotoLink:"", //pre-roll goto link
|
|
preroll_mp4:"", //pre-roll video mp4 format
|
|
prerollSkipTimer:5,
|
|
midrollAD:"no", //show mid-roll "yes","no"
|
|
midrollAD_displayTime:"00:10", //show mid-roll at any custom time in format "minutes:seconds" ("00:00")
|
|
midrollGotoLink:"", //mid-roll goto link
|
|
midroll_mp4:"", //mid-roll video mp4 format
|
|
midrollSkipTimer:5,
|
|
postrollAD:"no", //show post-roll "yes","no"
|
|
postrollGotoLink:"", //post-roll goto link
|
|
postroll_mp4:"", //post-roll video mp4 format
|
|
postrollSkipTimer:5,
|
|
popupImg:"<?php echo "../../".$video_info['video_dir'].$_GET["video_id"]."_thumb.jpg";?>", //popup image URL
|
|
popupAdShow:"no", //enable/disable popup image: "yes","no"
|
|
popupAdStartTime:"00:03", //time to show popup ad during playback
|
|
popupAdEndTime:"00:07", //time to hide popup ad during playback
|
|
popupAdGoToLink:"", //re-direct to URL when popup ad clicked
|
|
description:"", //video description
|
|
thumbImg:"<?php echo "../../".$video_info['video_dir'].$_GET["video_id"]."_thumb.jpg";?>", //set "auto" or leave blank "" to grab it automatically from youtube, or set path to playlist thumbnail image
|
|
info:"" //video info
|
|
}
|
|
]
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<!--example: fitToContainer-->
|
|
<!-- <div id="container" style="position:absolute;width:1006px;height:420px;margin:5% auto;left:50%;margin-left:-503px;background:#000000">
|
|
<div id="Elite_video_player"></div>
|
|
</div> -->
|
|
|
|
<!--example: fixedSize or fitToBrowser-->
|
|
<div id="Elite_video_player"></div>
|
|
</body>
|
|
|
|
</html>
|