inAppBrowser and YouTube videos

280 views
Skip to first unread message

WebSteve

unread,
Dec 19, 2012, 11:10:30 PM12/19/12
to phon...@googlegroups.com
When I do this link:

<a href="#" onclick="window.open('http://www.youtube.com/watch?v=nxP0wgBf6Zk', '_blank', 'location=no');">YouTube</a>

... the page works with the Done button in the inAppBrowser. 

If I use the code from iWebkit like this:

<a href="#" onclick="window.open('http://www.youtube.com/watch?v=nxP0wgBf6Zk', '_blank', 'location=no');"
<span class="name">A debtor to mercy alone</span> 
<span class="detailbutton"></span></a>

... the page just goes back to the top of its own page instead of showing the YouTube page. Any reason why? 

WebSteve

unread,
Dec 20, 2012, 12:08:21 AM12/20/12
to phon...@googlegroups.com
Log error published for simulator test:

Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)

WebSteve

unread,
Dec 20, 2012, 12:39:20 AM12/20/12
to phon...@googlegroups.com

Found in Apple documentation: 
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.html 

NSURL Domain

This error domain is defined for NSURL.

extern NSString * const NSURLErrorDomain;
Constants
NSURLErrorDomain

URL loading system errors

Available in OS X v10.2 and later.

Declared in NSURLError.h.

Declared In
NSURLError.h
Not very helpful. Using Xcode 4.5,2 with cordova-2.3.0rc2.

WebSteve

unread,
Dec 20, 2012, 12:54:31 AM12/20/12
to phon...@googlegroups.com

http://stackoverflow.com/questions/1024748/how-do-i-fix-nsurlerrordomain-error-999-in-iphone-3-0-os

"This error may occur if an another request is made before the previous request of WebView is completed..."

Could this mean that the inAppBrowser is not finished loading yet and the web page its accessing is interrupting in some way?

Shazron

unread,
Jan 4, 2013, 7:43:25 PM1/4/13
to phonegap
There has been some fixes regarding this, it should work properly now. 2.3.0 final is being packaged as we speak...


--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
 
 

Reply all
Reply to author
Forward
0 new messages