<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [Web Player] Problems with CEF embedded browser in Unity in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-Player-Problems-with-CEF-embedded-browser-in-Unity/m-p/5512242#M8120</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free/Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Canada&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Desktop&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;We're using Vuplex 3D WebView asset in our Unity project. It uses the Chromium Embedded Framework (CEF). It allows us to put a virtual/embedded browser within our Unity application.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Out-of-the-box, 3D WebView doesn't play any sound on open.spotify.com. To resolve this, &lt;A href="https://support.vuplex.com/articles/how-to-enable-widevine" target="_self"&gt;as per the documentation&lt;/A&gt;, I installed the H.264 codec as well as Widevine DRM.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Now, some sound plays. It seems that some long-form podcasts (e.g. JRE, Our Fake History) work just fine. However, others stop outputting sound after exactly 10 seconds (e.g.&amp;nbsp;&lt;SPAN&gt;Harley Quinn and The Joker: Sound Mind).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Music and playlists all seem to be problematic. Tracks get skipped in a fraction of a second. Once it "settles" on a track (usually after skipping 4-5 tracks), it plays sound for 10 seconds, but then the sound cuts out.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I contacted the developer of the 3D WebView. He's aware of the problem and has no immediate fix. He suspects that Spotify may be blocking the web player from working within CEF as an anti-piracy measure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I tried settings different user agents for the embedded browser without success.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Also important to note that there are no errors being displayed in Unity nor the embedded browser.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I figured I would ask about the issue here while waiting to hear back from the developer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 15:05:07 GMT</pubDate>
    <dc:creator>JoJosBizarreUsername</dc:creator>
    <dc:date>2023-02-27T15:05:07Z</dc:date>
    <item>
      <title>[Web Player] Problems with CEF embedded browser in Unity</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-Player-Problems-with-CEF-embedded-browser-in-Unity/m-p/5512242#M8120</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free/Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Canada&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Desktop&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;We're using Vuplex 3D WebView asset in our Unity project. It uses the Chromium Embedded Framework (CEF). It allows us to put a virtual/embedded browser within our Unity application.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Out-of-the-box, 3D WebView doesn't play any sound on open.spotify.com. To resolve this, &lt;A href="https://support.vuplex.com/articles/how-to-enable-widevine" target="_self"&gt;as per the documentation&lt;/A&gt;, I installed the H.264 codec as well as Widevine DRM.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Now, some sound plays. It seems that some long-form podcasts (e.g. JRE, Our Fake History) work just fine. However, others stop outputting sound after exactly 10 seconds (e.g.&amp;nbsp;&lt;SPAN&gt;Harley Quinn and The Joker: Sound Mind).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Music and playlists all seem to be problematic. Tracks get skipped in a fraction of a second. Once it "settles" on a track (usually after skipping 4-5 tracks), it plays sound for 10 seconds, but then the sound cuts out.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I contacted the developer of the 3D WebView. He's aware of the problem and has no immediate fix. He suspects that Spotify may be blocking the web player from working within CEF as an anti-piracy measure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I tried settings different user agents for the embedded browser without success.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Also important to note that there are no errors being displayed in Unity nor the embedded browser.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I figured I would ask about the issue here while waiting to hear back from the developer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 15:05:07 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-Player-Problems-with-CEF-embedded-browser-in-Unity/m-p/5512242#M8120</guid>
      <dc:creator>JoJosBizarreUsername</dc:creator>
      <dc:date>2023-02-27T15:05:07Z</dc:date>
    </item>
  </channel>
</rss>

