Focus scene player after loading new scene (#2758)

* Focus scene player after loading new scene
This commit is contained in:
WithoutPants
2022-07-22 17:32:03 +10:00
committed by GitHub
parent c21c334553
commit 4b7ef76321
2 changed files with 2 additions and 0 deletions

View File

@@ -558,6 +558,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
interactiveClient.setLooping(looping);
player.load();
player.focus();
if ((player as any).vttThumbnails?.src)
(player as any).vttThumbnails?.src(scene?.paths.vtt);