kurento 的模塊開發(fā)官網(wǎng)有介紹,只是內(nèi)容比較基本. 真正有價值的參考全部來自于其源碼.
創(chuàng)建filter
編譯,生成 js 包.
cmake ~/source/ar-marker/ -DGENERATE_JS_CLIENT_PROJECT:BOOL=TRUE
如何給filter 增加 構(gòu)造函數(shù)參數(shù),方法
修改 src/server/interface/armarker.arMarker.kmd.json 文件.
{
"remoteClasses": [
{
"name": "arMarker",
"extends": "Filter",
"doc": "arMarker interface. Documentation about the module",
"constructor": {
"doc": "Create an element",
"params": [
{
"name": "mediaPipeline",
"doc": "the parent :rom:cls:`MediaPipeline`",
"type": "MediaPipeline",
"final": true
},
{
"name": "enableArrow",
"doc": "enable 3D arrow in place",
"type": "boolean",
"optional": true,
"defaultValue": true
}
]
},
"methods": [
{
"name": "setFilterInfo",
"doc": "Configures Info of filter.",
"params": [
{
"name": "filterInfo",
"doc": "Value of filter info.",
"type": "String"
}
]
}
]
}
]
}
然后,在媒體服務(wù)器這邊就是純粹的GStreamer開發(fā)了,如g_object_set, _set_property, _get_property, 而信令服務(wù)器or瀏覽器應(yīng)用的開發(fā)就直接拿前面生成的包開發(fā), 更多細(xì)節(jié)就不講了, 清者自清.