Keep iframe extension running in the background in Chrome

Asked

Viewed 25 times

0

Good afternoon!

I apologize if that question already exists but I haven’t found anything like it.

I created an extension to listen to Antena 1 by Chrome through an app. Basically I took the URL where the streaming is available and incorporated into an HTML via iframe.

Follows the code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Antena 1 FM</title>
</head>
<body>
    <iframe src="https://www.antena1.com.br/stream/embed" frameborder="1"></iframe>
</body>
</html>

As bizarre as that sounds, I can’t and I don’t intend to, it’s just to create something where I can listen to the radio without leaving tabs open. It works well when I open the app, however, if I click out it is closed and then stops playing, as if the URL had been closed (I believe this happens).

I wonder if anyone knows how to keep the URL open in the background.

Thank you!

Att,

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.