I want to add sip calls to my quiz game. So, I've built SipHome project by this way:
http://code.google.com/p/csipsimple/wiki/HowToBuild#Without_building_the_native_library
It's Ok. Application compiled and launched. Now I want to add video-call ability on my app. After checkout (http://csipsimple.googlecode.com/svn/trunk/) I have also this SVN dependencies:
CSipSimpleBranded
CSipSimpleCodecG729
CSipSimpleCodecPack
CSipSimpleVideoPlugin
I've put classes PluginReceiver, CaptureReceiver, PluginReceiverFfmpeg and PluginReceiverVpx from CSipSimpleVideoPlugin project to SipHome project. And also I've put descriptions of receivers to SipHome manifest project:
<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>
I've set USE_VIDEO=true flag after login:
prefProviderWrapper.setPreferenceBooleanValue(SipConfigManager.USE_VIDEO, true);
When I call in InCallActivity I see VideoButton, but after press it I have this in logcat:
pjsua_vid.c .Unable to create re-INVITE: No SDP payload format in the media line (PJMEDIA_SDP_ENOFMT) [status=220032]
and video doesn't show.
Thanks.