fix trailers playback

This commit is contained in:
nklhrstv 2022-07-11 12:48:30 +03:00
parent e3c186b233
commit 3a179931c2

View file

@ -224,7 +224,8 @@ const Player = ({ urlParams, queryParams }) => {
setError(null);
if (player.selected === null) {
dispatch({ type: 'command', commandName: 'unload' });
} else if (streamingServer.baseUrl !== null && streamingServer.baseUrl.type !== 'Loading' && player.metaItem !== null && player.metaItem.type !== 'Loading') {
} else if (streamingServer.baseUrl !== null && streamingServer.baseUrl.type !== 'Loading' &&
(player.selected.metaRequest === null || (player.metaItem !== null && player.metaItem.type !== 'Loading'))) {
dispatch({
type: 'command',
commandName: 'load',