瀏覽代碼

Merge branch 'master' of yyppaag/video_player into master

AdamFu 5 年之前
父節點
當前提交
928f4b05fe
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/video/video.js

+ 1
- 1
src/video/video.js 查看文件

@@ -44,7 +44,7 @@ export default (
44 44
                 PROPERTIES.reduce((p, c) => {
45 45
                     p[c] = this.videoEl && this.videoEl[c];
46 46
                     if (c == 'playbackrates' && this.videoEl) {
47
-                        if (this.videoEl.dataset) {
47
+                        if (this.videoEl.dataset && this.videoEl.dataset[c]) {
48 48
                             p[c] = JSON.parse(this.videoEl.dataset[c]);
49 49
                         } else {
50 50
                             p[c] = JSON.parse(this.videoEl.getAttribute("data-" + c));