My issue is now that there is a timer on my webpage that is set to go off three different times of the day. The javascript works in test, but not on the pi. I had a similar issue when I first started testing, and figured out I needed to change the setting in my chrome browser. Is there a way to do something similar here?
@rjoel98 Quick question, are you trying to run the audio via the P2 jack or HDMI?
I tried using the P2 Jack and it worked fine, although the sound quality is not the best. For using the Audio Jack, it is recommended to use some sort of audio amplifier such as:
But unfortunately I still have had no luck. This is a basic version of the code that I am trying to run here http://3.91.201.56/test.html
I am using javascript to check the time, and if it matches the preset time, then the audio file is played. I know that the timer aspect works, but I can’t even get the audio to autoplay on load using the autoplay function in the
Yes, it works fine. From what I can tell there are a few sites that have been whitelisted for autoplay on browsers like chrome/chromium but I need to be able to replicate this across multiple different instances and devices.
A little bit of context is that I am building a wallboard application for a chain so I need to be able to setup a unique url for each store and host the wallboard with this “timer” attached so they can see the correct information.
@dansku I went ahead and did some more research, and I have tried loading the file through iframe and javascript, I also tried changing the source to google drive, and they all work on my mac when I use Chrome, Safari, or Firefox, but nothing on the pi. Any other suggestions on how I could try loading the audio?
@dansku Also, what method did you use to embed the video? I tried just using the <video> method but it gives me an error when I try running it on the pi. As I mentioned earlier, I am using Javascript as an alarm so I need the variable to be able to be played and paused from js.
Do you know what browser balenadash uses so I can do some more research and find out what formats are compatible?