XPCOM支持Android的WebKit浏览器? [英] XPCOM support in Android webkit browser?
问题描述
请问的Android 的的WebKit 支持 XPCOM 框架或 NPRuntime API`s像火狐?如何在Android的WebKit插件的JavaScript实现?
Does the Android WebKit supports the XPCOM framework or NPRuntime API`s as like Firefox? How to implement JavaScript in the Android WebKit plug-in?
更新:
我写一个媒体播放器插件,Android的WebKit浏览器,我的插件需要得到从网页通过JavaScript命令(一些操作,如播放/暂停/停止/调整发出如JavaScript从浏览器命令) 。我的插件是用本地C code。是否有任何实例或样品插件提供JavaScript的沟通?
Update: I am writing a media player plug-in for the Android WebKit browser and my plug-in needs to get the command from the web page through JavaScript (some actions like play/pause/stop/resize are issued as JavaScript commands from the browser). My plug-in is written in native C code. Are there any examples or sample plug-in available for JavaScript communication?
推荐答案
的WebKit并不支持XPCOM,因为WebKit是从Mozilla栈完全独立的。
WebKit doesn't support XPCOM, as WebKit is entirely separate from the Mozilla stack.
当你说你要实施的Javascript,你是什么意思?结果
内置的Android浏览器已经支持JavaScript的执行。
When you say you want to "implement Javascript", what do you mean?
The built-in Android browser already supports the execution of Javascript.
这篇关于XPCOM支持Android的WebKit浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!