<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ALSA sound mix problem (Youtube)]]></title><description><![CDATA[<p dir="auto">I’m not an expert of system admin or *nix machine. So I need a help.</p>
<p dir="auto">Maybe it’s not a MM-specific question. Anyway,</p>
<p dir="auto">WHAT I WANT… :</p>
<ul>
<li>playing several videos(Youtube) simultaneously in Electron / Chromium of Raspbian (Stretch)</li>
<li>I just embedded 2 youtube videos together, then tried to play both by manual.</li>
<li>When I play a video alone, it worked well.</li>
<li>But when I play 2 videos at the same time, one is not played. And system spits out this error.</li>
</ul>
<pre><code>ALSA lib pcm.c:8481:(snd_pcm_set_params) Unable to set hw params for PLAYBACK: Device or resource busy
</code></pre>
<p dir="auto">Is there anyone who experienced this? Or anyone who knows how to solve this? I think it could be related with some <code>Mixer</code>, but I have no idea about ALSA at all.</p>
<p dir="auto"><strong>UPDATE</strong><br />
In my research, <code>ALSA dmix</code> is not working properly in Raspbian Stretch (or Jessie)<br />
<code>pulseaudio</code> could be used for easy mixing, but not be included and not guaranteed to be worked in Raspbian.<br />
Hmmmm…</p>
]]></description><link>https://forum.magicmirror.builders/topic/8980/alsa-sound-mix-problem-youtube</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 16:58:39 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/8980.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Oct 2018 14:45:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ALSA sound mix problem (Youtube) on Mon, 29 Oct 2018 14:53:25 GMT]]></title><description><![CDATA[<p dir="auto"><strong>UPDATE</strong><br />
Weird thing.<br />
in RPI (model 3 B+ / Raspbian Stretch), in <code>getDom()</code> I rendered belows;</p>
<pre><code class="language-HTML">&lt; iframe width="560" height="315" src="https://www.youtube.com/embed/8CdcCD5V-d8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen&gt;&lt; /iframe&gt;
</code></pre>
<p dir="auto">This works. but</p>
<pre><code class="language-HTML">&lt; audio src="test.mp3" &gt;
&lt; iframe width="560" height="315" src="https://www.youtube.com/embed/8CdcCD5V-d8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen&gt;&lt; /iframe&gt;

</code></pre>
<p dir="auto">This doesn’t work often. but I don’t know why and when.</p>
<p dir="auto">When <code>audio</code> tag exists before <code>youtube</code>, 100% failed. When after, sometime worked, sometime didn’t. I suspect Electron(Chromium) on RPI cannot handle multi-sound output.</p>
<p dir="auto">I’m rebuilding my <code>MMM-AssistantMk2</code> 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… -_- )</p>
]]></description><link>https://forum.magicmirror.builders/post/46073</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/46073</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 29 Oct 2018 14:53:25 GMT</pubDate></item></channel></rss>