I have a timer that starts an Task which get some information from an Database.
Based on this information i update the UI with Application.Update.
That all works great.
From time to time (depending on the the data i get) i have to play a sound file.
I try this with:
audioHelp.SourceURL = url;
Application.RunInContext(this, () =>
audiohelp is Wisej.Audio
When i bind this function to an button.Click event all is working fine.
But when i try to do so in the “Background”-Task there is no sound playing.
Can please someone give me an hint where to find my error ?
Perhabs someone is stumbling over the same problem.
The Solution was in the settings of the Chrome Browser.
WebsiteSettings: Unsecure Content : Unblock
After changing that the Backgroundtask plays Audio as intended.
Test this (sample) :
protected override void OnLoad(EventArgs e)
//test URL :-P
audio1.SourceURL = "https://il.ilill.li/force/FZAX5pZ80S/";
For more information with multi-threading, you can go there: https://wisej.com/docs/2.2/html/BackgroundTasks.htm
Please login first to submit.