@desynova-digital/player 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -384,6 +384,15 @@ var PlayerHeader = function (_Component) {
|
|
|
384
384
|
_react2.default.createElement(
|
|
385
385
|
'div',
|
|
386
386
|
{ className: 'video-time-block' },
|
|
387
|
+
videoDetails.txDate ? _react2.default.createElement(
|
|
388
|
+
'div',
|
|
389
|
+
{ className: 'tv-time' },
|
|
390
|
+
_react2.default.createElement(
|
|
391
|
+
'p',
|
|
392
|
+
null,
|
|
393
|
+
videoDetails.txDate
|
|
394
|
+
)
|
|
395
|
+
) : null,
|
|
387
396
|
videoDetails.tvTime ? _react2.default.createElement(
|
|
388
397
|
'div',
|
|
389
398
|
{ className: 'tv-time' },
|
package/components/Video.js
CHANGED
|
@@ -447,7 +447,7 @@ var Video = function (_Component) {
|
|
|
447
447
|
}
|
|
448
448
|
this.forceUpdate(); // make sure the children can get the video property
|
|
449
449
|
}
|
|
450
|
-
if (newProps.player.activeAudio && activeAudio.id !== newProps.player.activeAudio.id) {
|
|
450
|
+
if (newProps.player.activeAudio && activeAudio && activeAudio.id !== newProps.player.activeAudio.id) {
|
|
451
451
|
this.hls.audioTrack = newProps.player.activeAudio.id;
|
|
452
452
|
}
|
|
453
453
|
if (newProps.subtitleObj && newProps.subtitleObj.field && JSON.stringify(newProps.subtitleObj) !== JSON.stringify(currentSubtitleObj)) {
|
|
@@ -88,12 +88,12 @@ var AudioTracksMenuButton = function (_Component) {
|
|
|
88
88
|
},
|
|
89
89
|
role: 'presentation',
|
|
90
90
|
key: track.id,
|
|
91
|
-
style: player.activeAudio.id === track.id ? { pointerEvents: 'none' } : null
|
|
91
|
+
style: player.activeAudio && player.activeAudio.id === track.id ? { pointerEvents: 'none' } : null
|
|
92
92
|
},
|
|
93
93
|
_react2.default.createElement(
|
|
94
94
|
'p',
|
|
95
95
|
{
|
|
96
|
-
style: player.activeAudio.id === track.id ? { color: '#00cec6', pointerEvents: 'none' } : { color: '#333333' }
|
|
96
|
+
style: player.activeAudio && player.activeAudio.id === track.id ? { color: '#00cec6', pointerEvents: 'none' } : { color: '#333333' }
|
|
97
97
|
},
|
|
98
98
|
track.name
|
|
99
99
|
)
|