mirror of
https://github.com/remvze/moodist.git
synced 2026-02-28 00:53:13 +08:00
feat: add media session (wip)
This commit is contained in:
@@ -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',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user