Play Sound in Background #21200
Unanswered
jkuehner75
asked this question in
Q&A
Replies: 2 comments
-
Thanks for the question. At this time, Uno does not have that specific feature ( |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok Jerome, thank you. I will check this way.
Jens
… Gesendet: Freitag, den 15.08.2025 um 14:52 Uhr
Von: "Jérôme Laban" ***@***.***>
An: unoplatform/uno ***@***.***>
Cc: jkuehner75 ***@***.***>, Author ***@***.***>
Betreff: Re: [unoplatform/uno] Play Sound in Background (Discussion #21200)
Thanks for the question.
At this time, Uno does not have that specific feature (`MediaPlayer` works mostly with `MediaPlayerElement`) at this time, but you can use [javascript interop](https://platform.uno/docs/articles/interop/wasm-javascript-1.html) to do the same as a workaround.
--
Reply to this email directly or view it on GitHub:
#21200 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to play a sound in the background and I have used the following with WinUI and need this for Uno platform especially WASM.
var mediaSource = MediaSource.CreateFromUri(uri);
var mediaPlayer = new MediaPlayer
{
Source = mediaSource
};
mediaPlayer.MediaEnded += (m,o) => { tcs.SetResult(); };
mediaPlayer.Play();
Beta Was this translation helpful? Give feedback.
All reactions