Skip to content

Commit

Permalink
support loop and screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
volio committed Jan 1, 2020
1 parent c8ed086 commit acc422b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ public static function parseCallback($matches)
'live' => false,
'autoplay' => false,
'theme' => isset($atts['theme']) ? $atts['theme'] : '#FADFA3',
'loop' => false,
'screenshot' => false,
'loop' => (isset($atts['loop']) && $atts['loop'] == 'true') ? true : false,
'screenshot' => (isset($atts['screenshot']) && $atts['screenshot'] == 'true') ? true : false,
'hotkey' => true,
'preload' => 'metadata',
'lang' => isset($atts['lang']) ? $atts['lang'] : 'zh-cn',
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
### 使用方式
下载后将文件夹名改为DPlayer上传启用即可

默认不自动播放,弹幕开启
默认不自动播放,弹幕不开启
```
[dplayer url="http://xxx.com/xxx.mp4" pic="http://xxx.com/xxx.jpg"/]
```
Expand Down

0 comments on commit acc422b

Please sign in to comment.