mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-23 12:57:41 +00:00
disable context menu on player
This commit is contained in:
parent
0e8850f419
commit
6355fae614
2 changed files with 2 additions and 0 deletions
|
|
@ -318,6 +318,7 @@ export function VideoClickTarget(props: { showingControls: boolean }) {
|
|||
onPointerDown={handlePointerDown}
|
||||
onPointerUp={handlePointerUp}
|
||||
onPointerLeave={handlePointerLeave}
|
||||
onContextMenu={(e) => e.preventDefault()}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ function VideoElement() {
|
|||
playsInline
|
||||
ref={videoEl}
|
||||
preload="metadata"
|
||||
onContextMenu={(e) => e.preventDefault()}
|
||||
>
|
||||
{subtitleTrack}
|
||||
</video>
|
||||
|
|
|
|||
Loading…
Reference in a new issue