mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
feat: add media session (wip)
This commit is contained in:
parent
9f0a28d930
commit
cf4870b0d6
@ -113,6 +113,7 @@ export function App() {
|
||||
useEffect(() => {
|
||||
if (isPlaying) {
|
||||
audioElement.current?.play().then(() => {
|
||||
audioElement.current!.volume = 1;
|
||||
navigator.mediaSession.metadata = new MediaMetadata({
|
||||
title: 'Moodist',
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user