mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 00:44:14 +00:00
feat: add media session (wip)
This commit is contained in:
parent
9f0a28d930
commit
cf4870b0d6
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue