Does anybody know if there's a way to get WebKit to dump errors to the console? 
The default behavior appears to be to fail silently.

Background:

I'm working on an app that deploys to iOS 7 and later. It contains a UIWebView 
whose content is build dynamically and contains, among other things, a number 
of <audio> tags that the user can tap on to play local or remote audio files. 
I'm finding that local audio files play just fine, but remote files don't. If I 
put the HTML into a file and open it in Safari or Chrome then both audio items 
load and play just fine so it isn't an issue of not being able to locate the 
remote file, or that the remote file contains bad data.

I created a simplified test that uses the same audio file, just that one copy 
is on the server, so that I can be working with the same audio data. On iOS 7 
the control for the remote file initially shows the play button but then 
shortly thereafter changes to display "Cannot play audio file."; on iOS 8 it 
just displays "Loading".

While I was at it, I installed Javascript event listeners on both of the 
<audio> tags so I could watch state changes. The local file fires 
loadstart-progress-suspend-loadedmetadata, and the remote one only loadstart 
and "Loading" remains visible in the control so it appears that the loading 
process is getting hung up or aborted for some reason.

Thoughts?


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to