在x11 or gtk窗口中播放flash

来源:百度知道 编辑:UC知道 时间:2024/05/16 07:17:01
最近在编写一个在x11 or gtk窗口中播放flash的程序
调用firefox 中的插件
但遇到一些问题
有哪位高人做过这事的能否指导一二,或给个代码(c,c++),非常感谢.
f-sic@163.com

代码片断

hdll = dlopen( "/usr/lib/mozilla/plugins/flashplugin-alternative.so", RTLD_LAZY );
if( 0 == hdll ) {
...
}
pNP_GetMIMEDescription = (char *(*)()) dlsym( hdll, "NP_GetMIMEDescription" );
pNP_Initialize = (NPError (*)(NPNetscapeFuncs*, NPPluginFuncs*)) dlsym( hdll, "NP_Initialize" );
.....
iret = pNP_Initialize( &mozillafun, &flashplayerfun );
if( NPERR_NO_ERROR != iret ) {
fprintf( stderr, "pNP_Initialize() error:%d\n", iret );
return 1;
}
........
flashplayer.ndata = NULL;
flashplayer.pdata = NULL;
iret = flashplayerfun.newp( pNP_GetMIMEDescription(), &flashplayer,
NP_EMBED, 5, (char **) arg1, (char **) arg2, &n

http://developer.mozilla.org/en/docs/Plugins:_Samples_and_Test_Cases
去这里看看

ls是什么?

你去找找有没有flash得解码器就行了北,调用firefox 中的插件?偶对GNOME不是很明白的。您在那里看过这方面的书,书我都没找到。。。

代码的话,您放弃把。。。这里基本上美欧。