Commit 9b7e9c3a authored by Mickaël Turnel's avatar Mickaël Turnel

Only use media soundcard for local player on Android

parent 12b340b6
......@@ -36,9 +36,14 @@ LinphonePlayer *linphone_core_create_local_player(LinphoneCore *lc, const char *
LinphonePlayer *obj = linphone_player_new(lc);
MSSndCard *snd_card;
MSSndCardManager *snd_card_manager = ms_factory_get_snd_card_manager(lc->factory);
#ifdef __ANDROID__
if (sound_card_name == NULL) sound_card_name = linphone_core_get_media_device(lc);
snd_card = ms_snd_card_manager_get_card(snd_card_manager, sound_card_name);
ms_snd_card_set_stream_type(snd_card, MS_SND_CARD_STREAM_MEDIA);
#else
if (sound_card_name == NULL) sound_card_name = linphone_core_get_ringer_device(lc);
snd_card = ms_snd_card_manager_get_card(snd_card_manager, sound_card_name);
#endif
if (video_display_name == NULL) video_display_name = linphone_core_get_video_display_filter(lc);
obj->impl = ms_media_player_new(lc->factory, snd_card, video_display_name, window_id);
obj->open = _local_player_open;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment