Videojs big buttons (#2455)

* Add big button panel on touch devices
This commit is contained in:
WithoutPants
2022-04-01 09:31:32 +11:00
committed by GitHub
parent d262d18f08
commit e54268cc7a
3 changed files with 140 additions and 24 deletions

View File

@@ -9,6 +9,7 @@ import "./PlaylistButtons";
import "./source-selector";
import "./persist-volume";
import "./markers";
import "./big-buttons";
import cx from "classnames";
import * as GQL from "src/core/generated-graphql";
@@ -168,6 +169,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
(player as any).offset();
(player as any).sourceSelector();
(player as any).persistVolume();
(player as any).bigButtons();
player.focus();
playerRef.current = player;
@@ -316,6 +318,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
});
player.on("play", function (this: VideoJsPlayer) {
player.poster("");
if (scene.interactive) {
interactiveClient.play(this.currentTime());
}