Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8277483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:42:13+00:00 2026-06-08T08:42:13+00:00

I am currently working on a browser that supports multiple tabs on the iPad.

  • 0

I am currently working on a browser that supports multiple tabs on the iPad. Problem is iOS doesn’t allow for more than one tab to be playing audio/video at the same time, trying this causes issues to arise such as all the audio to stop and not come back.

I have noticed that Google Chrome’s browser actually stops the media in the tab that goes inactive. I am wondering how they go about it. I know it is possible to completely stop the media via a [webView loadRequest:NSURLRequestWithString(@"about:blank")]; statement but that causes the page to display a blank screen. I would like to merely pause the media.

Is there some javascript I can execute that will stop the media in the UIWebView? If so, what would it look like (I have never touched javascript before)?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:42:14+00:00Added an answer on June 8, 2026 at 8:42 am

    Since you can do [webView stringByEvaluatingJavaScriptFromString:] there is are she simple methods.

    For example you could do this:

    [webview stringByEvaluatingJavaScriptFromString: @"document.querySelector('video').pause();"]
    

    Of course this would only stop the first video, so on iPad the script needs to be a little bit more sophisticated and loop through all the videos on the page.

    var videos = document.querySelectorAll("video");
    for (var i = videos.length - 1; i >= 0; i--){
            videos[i].pause();
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently working with converting SQLException error messages into messages that are more useful for
I'm currently working on a site that detects the browser version by checking for
Im currently working on a game that uses multi touch to apply zoom to
Am currently working on an application that requires users to submit posts and comments
I am currently working on a project that uses the Silverlight 3 SDK and
Upon visiting the site that I'm currently working on you would immediately notice the
I am currently working on a app that has multi web browsers on a
I'm currently working on a web application that might need to push information to
I am currently working on an application that requires to check whether the Opensearch
I am currently working on a website that users can download binary media files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.