Implement media sessions notification

This commit is contained in:
2026-04-22 22:51:10 +02:00
parent 6635266fc8
commit a0b43ae009
25 changed files with 173 additions and 219 deletions
+2 -1
View File
@@ -48,6 +48,7 @@ function PlayerExample({
const currentTime = usePlayerState("currentTime");
const duration = usePlayerState("duration");
const playbackRate = usePlayerState("playbackRate");
const muted = usePlayerState("muted");
const volume = usePlayerState("volume");
const [logs, setLogs] = useState<string[]>([]);
@@ -450,7 +451,7 @@ function App(): React.JSX.Element {
);
return (
<OmniProvider source={source}>
<OmniProvider source={source} showNotification>
<PlayerExample
onPrev={handlePrev}
onNext={handleNext}