Using YouTube Player API in Chrome App? - google-chrome-app

I'm trying to use the Youtube player API inside my chrome packaged app with no luck, apparently I can't load external content in any way other than using webview tag and I also can't change the Content Security Policy settings (unlike chrome extensions) - is there any way to achieve that?

I'm sure a webview is the way to do this, and to my knowledge there isn't any other way. It would help if you could explain why in your app a webview isn't a workable approach.

Related

Is crosswalk-project still available or is there an alternative

I don't like how my Android WebView app displays on some devices, so when I found out that crosswalk-project could fix that, I went to crosswalk-project.org but the website was down. Is there a way around it or an alternative to it?
Or will using WebChromeClient instead of WebViewClient fix it?
I want my WebView app to display the same across all devices and the Javascript "share" feature in one of the web pages of the website should work.

Flutter app with a web view deployed to the web

Seems like it should be something simple. I'm converting a mobile app to have web support. There are a few pages within the app that use WebView to display things such as terms and conditions and FAQ's.
As the WebView widget only supports ios and android from what I can tell, how should I do this? Of all the platforms you'd think the web was the easiest to do this!
ok, just after posting I came across IFrameElement which looking at this link https://medium.com/flutter-community/flutter-web-and-iframe-f26399aa1e2a should make it possible.

How to launch an external website from a chrome app?

I'm looking to link to a sign up page on an external webapp via a chrome app. The simplest way to manage this seems to be to open a new tab in the chrome browser (not a new webview in a new window of the app).
Tabs seem deprecated and a webview appears very unofficial and unsafe. Basically, is there a way to effectively do this:
Sign up
And the bigger question of course: is there a better way to approach what seems like a simple problem?
Your conceptions, "Tabs seem deprecated and a webview appears very unofficial and unsafe", seem very strange. tabs is simply not enabled for Apps, and <webview> is alive and well.
But if you must open it in the browser, window.open will do the trick. See also this question.
Edit: Also, upcoming is the chrome.browser.openTab API. Leave your feedback if you have use cases for this feature.

iphone phonegap change url

Is there any way of changing the url for phonegap on iPhone/iPad? In Android you can simply use loadUrl to change the url but a function like this doesn't seem to exist on iPhone/iPad.
I know there is a 'dirty' hack by using a redirect... but this rules out the use of the phonegap api on the external website which you are including in phonegap (via redirect).
Any help on this guys?
Many thanks.
If you want to change the url when you click on a link you just need to do :
window.location="page.html";
OR
window.location.href="page.html";

Store and browse static web content on a tablet (iOs and Android)

I wonder what the best solution is to store and browse static html pages with javascript, images and movie clips on both iPad and Android tablets?
The content is a product catalog and is rather large, about 2GB in size, and the idea is to be able to browse it offline.
According to this Android SE question, it should be possible on android with the built-in browser, however, according to this SO question it seems like it's not doable on iOs.
I've also seen suggestions on making an application of html content using PhoneGap, but I'm not familiar with it so I can't tell if it actually is an alternative.
How would you do it?
Update: The package size is about 3,5GB (not 2 as mentioned above)
Try the jquery API I hope there is a option to do operations like this