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

  • Home
  • SEARCH
  • 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 6053297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:01:28+00:00 2026-05-23T08:01:28+00:00

In iOS 4, I’ve got a page loaded in a UIWebView with a javascript

  • 0

In iOS 4, I’ve got a page loaded in a UIWebView with a javascript audio player. I did not create this player, it is owned by a third party, so I can’t tinker with it. When I click the play button, I see an NSLog printout like the following:

setting movie path: http://data.myaudio.com/thefile.mp3

My question is, what is getting it’s movie path set and how do I intercept it? The audio will continue to play until I create another UIWebView, or use the built in audio controls accessible by an iPhone home button double tap, or close the app. I can’t intercept the path with shouldStartLoadWithRequest:, the javascript function audio.play() appears to call some built in player directly. I’d like to control where and how the audio is being played, but short of parsing the HTML for any <audio> tags, I can’t figure out how to grab that path and point it somewhere other than the default.

  • 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-05-23T08:01:28+00:00Added an answer on May 23, 2026 at 8:01 am

    UIWebView is essentially a wrapper for WebKit. Apple does not want you to touch anything more about it than is provided by the existing delegate methods.

    That being said, you can modify the DOM of any loaded document by injecting JavaScript. This way you could also modify the audio.play to not do anything and instead get the URL to play with your own player that you can control.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: iOS - Detecting whether or not device support phone calls? I'm writing
How do I create a png image from text in iOS?
UPDATE It looks like this problem has been quietly fixed in iOS 4.3. Up
IOS Core Location framework did'nt work out on ios 4.2 simulator.Anybody knows the issues.Any
I'm having another iOS related issue. This time relating to addSubView on a UIView.
For iOS development, if you create and add a sub view at runtime, how
iOS uses programmatic styling for tab style icon images. I was wondering if this
On iOS I have always assume that it is not possible to do OpenGL
iOS has had high speed scrubbing in the media player since iOS3. However, the
iOS 5 library was automatically downloaded to my machine recently. Since this happened, when

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.