v3: added index default tab selection setting, fixed notification pages not loading, reduced invite token length, global player state survives page reloads, many visual fixes
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 44s
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 44s
This commit is contained in:
@@ -10,8 +10,16 @@ function itemKey(
|
||||
}
|
||||
|
||||
export function GlobalPlayer() {
|
||||
const { current, stop, seekRef, toggleRef, onPlayStateChange, onTimeUpdate } =
|
||||
useContext(PlayerContext);
|
||||
const {
|
||||
current,
|
||||
startTime,
|
||||
autoplay,
|
||||
stop,
|
||||
seekRef,
|
||||
toggleRef,
|
||||
onPlayStateChange,
|
||||
onTimeUpdate,
|
||||
} = useContext(PlayerContext);
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const [reduced, setReduced] = useState(false);
|
||||
const [prevKey, setPrevKey] = useState(itemKey(current));
|
||||
@@ -98,7 +106,8 @@ export function GlobalPlayer() {
|
||||
src={current.fileUrl}
|
||||
kind={current.mimeType.startsWith("video/") ? "video" : "audio"}
|
||||
mime={current.mimeType}
|
||||
autoplay
|
||||
autoplay={autoplay}
|
||||
startTime={startTime}
|
||||
onPlayStateChange={onPlayStateChange}
|
||||
onTimeUpdate={onTimeUpdate}
|
||||
seekRef={seekRef}
|
||||
|
||||
Reference in New Issue
Block a user