Add double-click functionality to ChannelPlayer for fullscreen toggle: enhance user interaction by allowing users to enter fullscreen mode with a double-click on the player.
This commit is contained in:
@@ -118,6 +118,7 @@ export function ChannelPlayer({
|
|||||||
muted
|
muted
|
||||||
className="h-full w-full"
|
className="h-full w-full"
|
||||||
onClick={togglePlay}
|
onClick={togglePlay}
|
||||||
|
onDoubleClick={toggleFullscreen}
|
||||||
onPlay={() => setPlaying(true)}
|
onPlay={() => setPlaying(true)}
|
||||||
onPause={() => setPlaying(false)}
|
onPause={() => setPlaying(false)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user