Fix video filters (#2459)

This commit is contained in:
WithoutPants
2022-04-02 07:12:24 +11:00
committed by GitHub
parent f4a9ea76a1
commit b504a89247
2 changed files with 6 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ $sceneTabWidth: 450px;
.video-js {
height: 56.25vw;
overflow: hidden;
width: 100%;
@media (min-width: 1200px) {

View File

@@ -109,7 +109,11 @@ export const SceneVideoFilterPanel: React.FC<ISceneVideoFilterPanelProps> = (
);
function updateVideoStyle() {
const playerVideoElement = document.getElementById(VIDEO_PLAYER_ID);
const playerVideoContainer = document.getElementById(VIDEO_PLAYER_ID);
const videoElements =
playerVideoContainer?.getElementsByTagName("video") ?? [];
const playerVideoElement =
videoElements.length > 0 ? videoElements[0] : null;
if (playerVideoElement != null) {
let styleString = "filter:";