# Problem sound extension

**URL:** <https://discourse.mozilla.org/t/problem-sound-extension/69046>\
**Category:** Development\
**Created:** [October 13, 2020, 5:18pm UTC](https://discourse.mozilla.org/t/problem-sound-extension/69046 "2020-10-13T17:18:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huynh.gianni](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@huynh.gianni](https://discourse.mozilla.org/u/huynh.gianni)\
**Post date:** [October 13, 2020, 5:18pm UTC](https://discourse.mozilla.org/t/problem-sound-extension/69046/1 "2020-10-13T17:18:43Z")

</div>

Hello, i trying actually to create an add on for firefox (for my personnal using for the moment), my idea is :  
An Lo-Fi radio addon who plays in the background the sound of a live youtube lofi, so I made sure that when I click on the extension it opens an html file containing the live video, my problem is that : if I close the addon, or I change tab, the sound stops, how to make so that the sound plays continuously without having to keep the extension “open”, to summarize I try to achieve a result similar to the extension "Nook ", I send screenshots of my code below

 ![3](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/1/a/1af688ab7149e4a7202aa457912dff583fb78850.jpeg) ![Capture](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/b/9/b9c6aed08d050283f3f7fc2f8679b6e4784d0998.jpeg) ![Capture2](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/5/7/57c4a246083dda03aadd58e9f55ec6bb2ad8eb65.jpeg)

---

<div class="post-metadata">

**Author:** ![freaktechnik](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/freaktechnik/32/37766_2.png) [@freaktechnik](https://discourse.mozilla.org/u/freaktechnik)\
**Post date:** [October 13, 2020, 7:04pm UTC](https://discourse.mozilla.org/t/problem-sound-extension/69046/2 "2020-10-13T19:04:06Z")

</div>

You likely want to have the stream open in the background page - though I’m not sure if it’s allowed to have a YT embed in the background page.

Alternatives would be using a sidebar or a hidden tab.
