|
|
|
|
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));
|