android: linphone vp8 support

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2011-08-05 09:44:41 +02:00
parent 4d47899e2f
commit faba32f15f
4 changed files with 7 additions and 0 deletions

View file

@ -43,6 +43,7 @@
<string name="pref_codec_speex32_key">pref_codec_speex32_key</string> <string name="pref_codec_speex32_key">pref_codec_speex32_key</string>
<string name="pref_codecs_key">pref_codecs_key</string> <string name="pref_codecs_key">pref_codecs_key</string>
<string name="pref_stun_server_key">pref_stun_server_key</string> <string name="pref_stun_server_key">pref_stun_server_key</string>
<string name="pref_video_codec_vp8_key">pref_video_codec_vp8_key</string>
</resources> </resources>

View file

@ -124,4 +124,5 @@
<string name="first_launch_bad_login_password">Couldn\'t connect; check your login and password and start again</string> <string name="first_launch_bad_login_password">Couldn\'t connect; check your login and password and start again</string>
<string name="pref_amr_summary">AMR codec might not be present on your phone</string> <string name="pref_amr_summary">AMR codec might not be present on your phone</string>
<string name="pref_video_codec_vp8_title">VP8</string>
</resources> </resources>

View file

@ -97,6 +97,9 @@
<CheckBoxPreference android:key="@string/pref_video_codec_h264_key" <CheckBoxPreference android:key="@string/pref_video_codec_h264_key"
android:title="@string/pref_video_codec_h264_title" android:title="@string/pref_video_codec_h264_title"
android:defaultValue="false"></CheckBoxPreference> android:defaultValue="false"></CheckBoxPreference>
<CheckBoxPreference android:key="@string/pref_video_codec_vp8_key"
android:title="@string/pref_video_codec_vp8_title"
android:defaultValue="false"></CheckBoxPreference>
<CheckBoxPreference android:key="@string/pref_video_codec_mpeg4_key" <CheckBoxPreference android:key="@string/pref_video_codec_mpeg4_key"
android:title="@string/pref_video_codec_mpeg4_title" android:title="@string/pref_video_codec_mpeg4_title"
android:defaultValue="true"></CheckBoxPreference> android:defaultValue="true"></CheckBoxPreference>

View file

@ -569,6 +569,8 @@ public final class LinphoneManager implements LinphoneCoreListener {
key = R.string.pref_video_codec_h264_key; key = R.string.pref_video_codec_h264_key;
} else if ("H263-1998".equals(mime)) { } else if ("H263-1998".equals(mime)) {
key = R.string.pref_video_codec_h263_key; key = R.string.pref_video_codec_h263_key;
} else if ("VP8-DRAFT-0-3-2".equals(mime)) {
key = R.string.pref_video_codec_vp8_key;
} else { } else {
Log.e("Unhandled video codec ", mime); Log.e("Unhandled video codec ", mime);
mLc.enablePayloadType(videoCodec, false); mLc.enablePayloadType(videoCodec, false);