Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
How do I output audio from website video and stream in the background/foreground in Android WebView?

I am currently working on an android app that takes a String URL and displays the website in WebView format.

I am now confused on how to send the audio from the Video on that Website to play in the background/foreground.

I want it when user minimizes app, audio will still continue to play.

Ex.

WebView webView;
String url = "https://animixplay.to/";
webView = (WebView) findViewById(R.id.webview);
webSettings.setJavaScriptEnabled(true);
webView.loadUrl(url);

I have heard and saw threads talking about Services or something like but I just don't know where to get started and how to "Call" the Services class into my MainActivity if that is the case.

I have also heard about injecting JavaScripts into the WebView and going on from there but I can't seem to find how to do that as well. (I could just not be searching the correct stuff in the first place.)

I am just starting out in android app building, JavaScript and any help will be greatly appreciated and maybe some examples will do as well. Thank You

TLDR; Don't know how to continue to play audio from websites into background/foreground if user minimizes the app. Services? JavaScript Inject? Still new to this.

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda