Skip to content

Commit

Permalink
V1.2.13 ; 修正autoplay属性为false时仍会自动播放的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
journey-ad committed Aug 29, 2018
1 parent 0f12e3d commit 2d79f79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @package cPlayer
* @author journey.ad
* @version 1.2.12
* @version 1.2.13
* @dependence 13.12.12-*
* @link https://github.com/journey-ad/cPlayer-Typecho-Plugin
*/
Expand All @@ -16,7 +16,7 @@ class cPlayer_Plugin implements Typecho_Plugin_Interface
{
//此变量用以在一个变量中区分多个播放器实例
protected static $playerID = 0;
protected static $VERSION = '1.2.12';
protected static $VERSION = '1.2.13';
protected static $INTEGRITY = 'sha256-DfhgVlsA1ZGGnu67H8m4gS6sKim08dZwCO51NqiW54Q='; //commit#f9b593d
/**
* 激活插件方法,如果激活失败,直接抛出异常
Expand Down Expand Up @@ -472,7 +472,7 @@ public static function footer()
element: element,
list: cPlayerOptions[i]['list'],
});
cPlayers[i].music.autoplay = cPlayerOptions[i]['autoplay'] || false;
if(cPlayerOptions[i]['autoplay'] === 'true') cPlayers[i].music.autoplay = true;
};
cPlayers = [];cPlayerOptions = [];
};
Expand Down

0 comments on commit 2d79f79

Please sign in to comment.