|
@@ -32,8 +32,13 @@
|
|
|
<h2 id="options">Options</h2>
|
|
|
<div class="example">
|
|
|
<button class="btn" onclick="switchDPlayer()">Switch Video</button>
|
|
|
- <button class="btn" onclick="dp2.notice('Notice演示')">Notice</button>
|
|
|
- <button class="btn" onclick="dp2.destroy()">Destroy</button>
|
|
|
+ <button class="btn" onclick="dp2.notice('Notice演示')">notice</button>
|
|
|
+ <button class="btn" onclick="dp2.seek(120)">seek</button>
|
|
|
+ <button class="btn" onclick="dp2.volume(0.2)">volume</button>
|
|
|
+ <button class="btn" onclick="dp2.toggle()">toggle</button>
|
|
|
+ <button class="btn" onclick="dp2.destroy()">destroy</button>
|
|
|
+ <button class="btn" onclick="dp2.danmaku.hide()">danmaku.hide</button>
|
|
|
+ <button class="btn" onclick="dp2.danmaku.show()">danmaku.show</button>
|
|
|
<div id="dplayer2"></div>
|
|
|
<script>
|
|
|
var dp2 = new DPlayer({
|