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:
@@ -11,6 +11,12 @@ export interface PlayerContextValue {
|
||||
currentTime: number;
|
||||
duration: number;
|
||||
|
||||
// Initial seek offset for the active item (non-zero only for an item restored
|
||||
// from a previous session) and whether the active MediaPlayer should autoplay.
|
||||
// A restored item appears paused; a fresh play() autoplays on the user gesture.
|
||||
startTime: number;
|
||||
autoplay: boolean;
|
||||
|
||||
// Control — callable by any consumer
|
||||
play(item: PlayerItem): void;
|
||||
stop(): void;
|
||||
@@ -32,6 +38,8 @@ export const PlayerContext = createContext<PlayerContextValue>({
|
||||
playing: false,
|
||||
currentTime: 0,
|
||||
duration: 0,
|
||||
startTime: 0,
|
||||
autoplay: false,
|
||||
play: () => {},
|
||||
stop: () => {},
|
||||
seekTo: () => {},
|
||||
|
||||
Reference in New Issue
Block a user