diff --git a/plugin/PlayerSkins/PlayerSkins.php b/plugin/PlayerSkins/PlayerSkins.php
index a698c48ca..3d1ae2138 100644
--- a/plugin/PlayerSkins/PlayerSkins.php
+++ b/plugin/PlayerSkins/PlayerSkins.php
@@ -1,70 +1,82 @@
The Skis options are: ";
$dir = $global['systemRootPath'].'plugin/PlayerSkins/skins/';
$names = array();
foreach (glob($dir . '*.css') as $file) {
$path_parts = pathinfo($file);
$names[] = $path_parts['filename'];
}
return $desc."".implode($names," or ")."";
}
public function getName() {
return "PlayerSkins";
}
public function getUUID() {
return "e9a568e6-ef61-4dcc-aad0-0109e9be8e36";
}
public function getPluginVersion() {
return "1.0";
}
public function getEmptyDataObject() {
global $global;
$obj = new stdClass();
$obj->skin = "youtube";
$obj->playbackRates = "[0.5, 1, 1.5, 2]";
return $obj;
}
public function getHeadCode() {
global $global;
$obj = $this->getDataObject();
$css = "";
if (!empty($_GET['videoName']) || !empty($_GET['u']) || !empty($_GET['playlists_id'])) {
$css .= "skin}.css\" rel=\"stylesheet\" type=\"text/css\"/>";
}
return $css;
}
public function getTags() {
return array('free');
}
static function getDataSetup($str = ""){
+ global $video, $disableYoutubeIntegration, $global;
$obj = AVideoPlugin::getObjectData('PlayerSkins');
$dataSetup = array();
if(!empty($obj->playbackRates)){
$dataSetup[] = "'playbackRates':{$obj->playbackRates}";
}
+ if ((isset($_GET['isEmbedded'])) && ($disableYoutubeIntegration == false) && !empty($video['videoLink'])) {
+ if ($_GET['isEmbedded'] == "y") {
+ $dataSetup[] = "techOrder:[\"youtube\"]";
+ $dataSetup[] = "sources:[{type: \"video/youtube\", src: \"{$video['videoLink']}\"}]";
+ $dataSetup[] = "youtube:{customVars: {wmode: \"transparent\", origin: \"{$global['webSiteRootURL']}\"}}";
+ } else if ($_GET['isEmbedded'] == "v") {
+ $dataSetup[] = "techOrder:[\"vimeo\"]";
+ $dataSetup[] = "sources:[{type: \"video/vimeo\", src: \"{$video['videoLink']}\"}]";
+ $dataSetup[] = "vimeo:{customVars: {wmode: \"transparent\", origin: \"{$global['webSiteRootURL']}\"}}";
+ }
+ }
if(!empty($dataSetup)){
return ",{". implode(",", $dataSetup)."{$str}}";
}
return "";
}
}