VOD Infomaniak - Version 1.3.2

Version Description

(27/09/2015) = * Fix option stretch qui ne fonctionnait pas correctement

Download this release

Release Info

Developer infomaniak-dev
Plugin Icon wp plugin VOD Infomaniak
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

Files changed (2) hide show
  1. readme.txt +5 -2
  2. vod.class.php +7 -2
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: Infomaniak Network
4
Plugin Name: Vod Infomaniak
5
Tags: video, manage, infomaniak, vod
6
Requires at least: 2.8.6
7
- Tested up to: 4.1
8
- Stable tag: 1.3.1
9
10
11
@@ -72,6 +72,9 @@ Si vous ne trouvez pas de solution à votre question, vous pouvez aussi nous con
72
73
== Changelog ==
74
75
= 1.3.1 (21/09/2015) =
76
* Force mise à jour version
77
4
Plugin Name: Vod Infomaniak
5
Tags: video, manage, infomaniak, vod
6
Requires at least: 2.8.6
7
+ Tested up to: 4.3.1
8
+ Stable tag: 1.3.2
9
10
11
72
73
== Changelog ==
74
75
+ = 1.3.2 (27/09/2015) =
76
+ * Fix option stretch qui ne fonctionnait pas correctement
77
+
78
= 1.3.1 (21/09/2015) =
79
* Force mise à jour version
80
vod.class.php CHANGED
@@ -15,7 +15,7 @@
15
define('VOD_RIGHT_ADMIN', 4);
16
17
class EasyVod {
18
- public $version = "1.3.1";
19
private $local_version;
20
private $plugin_url;
21
private $options;
@@ -318,7 +318,7 @@
318
foreach ($aList as $param) {
319
if (strpos($param, "=") !== false) {
320
$aCut = split("=", $param);
321
- if (in_array($aCut[0], array("width", "height", "autoplay", "loop", "player", "videoimage", "tokenfolder"))) {
322
$aTagParam[$aCut[0]] = $aCut[1];
323
}
324
}
@@ -344,6 +344,7 @@
344
$loop = empty($aTagParam['loop']) ? $this->options['loop'] : intval($aTagParam['loop']);
345
$width = empty($aTagParam['width']) ? $this->options['width'] : trim($aTagParam['width']);
346
$height = empty($aTagParam['height']) ? $this->options['height'] : trim($aTagParam['height']);
347
348
if (is_numeric($file)) {
349
$video_url = $sUrl . "?url=&playlist=" . $file;
@@ -374,6 +375,9 @@
374
if (isset($aTagParam['loop'])) {
375
$video_url .= "&loop=$loop";
376
}
377
if (!empty($sKey)) {
378
$video_url .= $sKey;
379
}
@@ -397,6 +401,7 @@
397
'width' => 480,
398
'height' => 360,
399
'template' => '{video}',
400
'loop' => 0,
401
'autoplay' => 0,
402
'privacy' => 0,
15
define('VOD_RIGHT_ADMIN', 4);
16
17
class EasyVod {
18
+ public $version = "1.3.2";
19
private $local_version;
20
private $plugin_url;
21
private $options;
318
foreach ($aList as $param) {
319
if (strpos($param, "=") !== false) {
320
$aCut = split("=", $param);
321
+ if (in_array($aCut[0], array("width", "height", "stretch", "autoplay", "loop", "player", "videoimage", "tokenfolder"))) {
322
$aTagParam[$aCut[0]] = $aCut[1];
323
}
324
}
344
$loop = empty($aTagParam['loop']) ? $this->options['loop'] : intval($aTagParam['loop']);
345
$width = empty($aTagParam['width']) ? $this->options['width'] : trim($aTagParam['width']);
346
$height = empty($aTagParam['height']) ? $this->options['height'] : trim($aTagParam['height']);
347
+ $stretch = empty($aTagParam['stretch']) ? $this->options['stretch'] : intval($aTagParam['stretch']);
348
349
if (is_numeric($file)) {
350
$video_url = $sUrl . "?url=&playlist=" . $file;
375
if (isset($aTagParam['loop'])) {
376
$video_url .= "&loop=$loop";
377
}
378
+ if (isset($aTagParam['stretch'])) {
379
+ $video_url .= "&strechheight=$stretch";
380
+ }
381
if (!empty($sKey)) {
382
$video_url .= $sKey;
383
}
401
'width' => 480,
402
'height' => 360,
403
'template' => '{video}',
404
+ 'stretch' => 0,
405
'loop' => 0,
406
'autoplay' => 0,
407
'privacy' => 0,