XPCOM支持Android的WebKit浏览器? [英] XPCOM support in Android webkit browser?

查看:162
本文介绍了XPCOM支持Android的WebKit浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问的Andr​​oid 的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,你是什么意思?结果
内置的Andr​​oid浏览器已经支持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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆