Browse Source

Merge branch 'master' of yyppaag/video_player into master

AdamFu 5 years ago
parent
commit
928f4b05fe
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/video/video.js

+ 1
- 1
src/video/video.js View File

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