问题
I read that WebView component in Android 4.4 is based on Chrome: https://developers.google.com/chrome/mobile/docs/webview/overview#does_the_webview_support_the_chrome_apps_apis
However, support for Chrome Apps API is still not there. Does this mean that my WebView based app cannot use Chromecast Sender APIs ?
回答1:
That is correct, you do not have the needed extension and APIs to use the (pure) chrome WebView to communicate with a chromecast device. As a side note, you cannot do that in the full Chrome on Android either.
回答2:
I think Chromecast is one of those things that doesn't come with Chromium (the opensource project where Chrome is based upon) and Android uses Chromium for the webview, not Chrome :)
来源:https://stackoverflow.com/questions/19797403/chromecast-sender-apis-for-webview-based-app-on-android-4-4