UPDATE
Weird thing.
in RPI (model 3 B+ / Raspbian Stretch), in getDom() I rendered belows;
< iframe width="560" height="315" src="https://www.youtube.com/embed/8CdcCD5V-d8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>< /iframe>
This works. but
< audio src="test.mp3" >
< iframe width="560" height="315" src="https://www.youtube.com/embed/8CdcCD5V-d8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>< /iframe>
This doesn’t work often. but I don’t know why and when.
When audio tag exists before youtube, 100% failed. When after, sometime worked, sometime didn’t. I suspect Electron(Chromium) on RPI cannot handle multi-sound output.
I’m rebuilding my MMM-AssistantMk2 more stable, lighter and independent from some annoying dependencies, but I’m stuck on this. I’m even considering to drop youtube features from module if I cannot solve this problem. (But who cares… -_- )