kopia lustrzana https://github.com/mediacms-io/mediacms
fix issue with uninitialized video player
rodzic
d971bb955f
commit
6ea8fd12a3
|
@ -192,7 +192,7 @@ export function VideoPlayer(props) {
|
|||
document.addEventListener('visibilitychange', initPlayer);
|
||||
}
|
||||
|
||||
player.player.one('loadedmetadata', () => {
|
||||
player && player.player.one('loadedmetadata', () => {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const paramT = Number(urlParams.get('t'));
|
||||
const timestamp = !isNaN(paramT) ? paramT : 0;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue