我想添加SIP電話到my quiz game。所以,我已經建立了SipHome項目通過這種方式:Android。 cSipSimple。如何將視頻通話集成到項目中?
http://code.google.com/p/csipsimple/wiki/HowToBuild#Without_building_the_native_library
這是好的。應用程序編譯並啓動。 現在我想添加視頻通話功能在我的應用程序。結帳(http://csipsimple.googlecode.com/svn/trunk/)之後,我也有這個SVN依賴關係:
CSipSimpleBranded
CSipSimpleCodecG729
CSipSimpleCodecPack
CSipSimpleVideoPlugin
我已經把班PluginReceiver,CaptureReceiver,PluginReceiverFfmpeg和PluginReceiverVpx從CSipSimpleVideoPlugin項目SipHome項目。同時,我已經把接收器的描述來SipHome清單項目:
prefProviderWrapper.setPreferenceBooleanValue(SipConfigManager.USE_VIDEO, true);
當我打電話InCallActivity我看到:
<receiver android:name=".plugins.video.PluginReceiver" >
<intent-filter>
<action android:name="com.csipsimple.plugins.action.REGISTER_VIDEO" />
</intent-filter>
<meta-data
android:name="lib_name"
android:value="libpj_video_android.so" />
<!-- For now it does not matter in the future we should have one per device, codec, and converter (if needed) -->
<meta-data
android:name="init_factory"
android:value="pjmedia_webrtc_vid_render_factory" />
</receiver>
<!--
Receiver for video capture
<receiver android:name=".plugins.video.CaptureReceiver" >
<intent-filter>
<action android:name="com.csipsimple.plugins.action.REGISTER_CAPTURE_VIDEO" />
</intent-filter>
<meta-data
android:name="lib_name"
android:value="libpj_screen_capture_android.so" />
<meta-data
android:name="init_factory"
android:value="pjmedia_webrtc_vid_capture_factory" />
</receiver>
-->
<receiver android:name=".plugins.video.PluginReceiverFfmpeg" >
<intent-filter>
<action android:name="com.csipsimple.codecs.action.REGISTER_VIDEO_CODEC" />
</intent-filter>
<meta-data
android:name="lib_name"
android:value="libpj_video_android.so" />
<meta-data
android:name="init_factory"
android:value="pjmedia_codec_ffmpeg_vid_init" />
<meta-data
android:name="deinit_factory"
android:value="pjmedia_codec_ffmpeg_vid_deinit" />
</receiver>
<receiver android:name=".plugins.video.PluginReceiverVpx" >
<intent-filter>
<action android:name="com.csipsimple.codecs.action.REGISTER_VIDEO_CODEC" />
</intent-filter>
<meta-data
android:name="lib_name"
android:value="libpj_vpx.so" />
<meta-data
android:name="init_factory"
android:value="pjmedia_codec_vpx_init" />
<meta-data
android:name="deinit_factory"
android:value="pjmedia_codec_vpx_deinit" />
</receiver>
我登錄後設置USE_VIDEO = true標誌VideoButton,但按下後,我有這在logcat:
pjsua_vid.c。無法創建re-INVITE:媒體行中沒有SDP有效負載格式(PJMEDIA_SDP_ ENOFMT)[status = 220032]
並且視頻不顯示。
謝謝。
給問題添加賞金並不會改變沒有人會爲您寫代碼的事實。 –
對不起,我不需要代碼。我想描述下一步我需要做什麼?如何添加視頻插件到我的項目?謝謝。 – anivaler
它基本上是一樣的東西。在這個網站上,你應該展示你自己的努力,你應該嘗試自己去做,當你遇到一個特定的問題時,我們可以幫助你。你有沒有嘗試自己添加到你的應用程序?試圖添加它時遇到了什麼問題?你有沒有嘗試搜索谷歌和Stackoverflow上的答案?或者在你的情況下,你已經找到了完美的信息來源。您正在鏈接的項目是一個已經集成了此功能並且是開源的應用程序。你爲什麼不在那裏尋找你的答案? –