Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!