openreplay/frontend/app/player-ui/FullScreenButton.tsx
Delirium b17c3ab8d7
Spots UI (#2385)
* feat ui: login flow for spot extension

* spot list, store and service created

* some fixing for header

* start work on single spot

* spot player start

* header for player, comments, icons, etc

* split stuff into compoennts, create player state manager

* player controls, activity panel etc etc

* comments, empty page, rename and stuff

* interval buttons etc

* access modal

* pubkey support

* fix tooltip

* limit 10 -> 9

* hls lib instead of videojs

* some warnings

* fix date display for exp

* change public links

* display more client data

* fix cleaning, init comment

* map network to replay player network ev

* stream support, console panel, close panels on X

* fixing streaming, destroy on leave

* fix autoplay

* show notification on spot login

* fix spot login

* backup player added, fix audio issue

* show thumbnail when no video, add spot roles

* add poster thumbnail

* some fixes to video check

* fix events jump

* fix play btn

* try catch over pubkey

* icons

* spot login pinging

* move spot login flow to login comp, use separate spot login path for unique jwt

* invalidate spot jwt on logout

* add visual data on page load event

* typo fix

* issue to copy change

* share spot url f
2024-07-31 09:56:41 +02:00

33 lines
894 B
TypeScript

import React from 'react';
import { Popover, Button } from 'antd';
import { FullscreenOutlined } from '@ant-design/icons';
import { PlaySessionInFullscreenShortcut } from 'Components/Session_/Player/Controls/components/KeyboardHelp';
interface IProps {
size: number;
onClick: () => void;
customClasses?: string;
noShortcut?: boolean;
}
export function FullScreenButton({ size = 18, onClick, noShortcut }: IProps) {
return (
<Popover
content={
<div className={'flex gap-2 items-center'}>
{!noShortcut ? <PlaySessionInFullscreenShortcut /> : null}
<div>Play In Fullscreen</div>
</div>
}
placement={"topRight"}
>
<Button
onClick={onClick}
shape="circle"
size={'small'}
className={'flex items-center justify-center'}
icon={<FullscreenOutlined />}
/>
</Popover>
);
}