conn->render.display_type, conn->render.display_type == WEBRTC_DISPLAY_TYPE_OVERLAY ? g_ad.win : conn->render.eo);
#ifdef TIZEN_FEATURE_ESPP
if (conn->render.espp.handle) {
- conn->render.espp.video_track_preparing = true;
if (conn->render.display_type == WEBRTC_DISPLAY_TYPE_OVERLAY)
esplusplayer_set_display(conn->render.espp.handle, ESPLUSPLAYER_DISPLAY_TYPE_OVERLAY, g_ad.win);
else if (conn->render.display_type == WEBRTC_DISPLAY_TYPE_EVAS)
int ret;
g_print("Audio track is added, set stream_info[%p]\n", &conn->render.stream_info);
#ifdef TIZEN_FEATURE_ESPP
- if (conn->render.espp.handle) { /* TODO: apply stream info if the function is provided in espp */
- conn->render.espp.audio_track_preparing = true;
+ if (conn->render.espp.handle) /* TODO: apply stream info if the function is provided in espp */
return;
- }
#endif
if (!conn->render.stream_info) {
ret = sound_manager_create_stream_information(SOUND_STREAM_TYPE_MEDIA, NULL, NULL, &conn->render.stream_info);
g_mutex_init(&get_appdata()->conns[index].render.espp.mutex);
g_cond_init(&get_appdata()->conns[index].render.espp.cond);
- get_appdata()->conns[index].render.espp.audio_track_preparing = false;
- get_appdata()->conns[index].render.espp.video_track_preparing = false;
+ get_appdata()->conns[index].render.espp.audio_track_preparing = true;
+ get_appdata()->conns[index].render.espp.video_track_preparing = true;
g_print("espp create & open\n");
get_appdata()->conns[index].render.espp.handle = esplusplayer_create();
esplusplayer_destroy(get_appdata()->conns[index].render.espp.handle);
get_appdata()->conns[index].render.espp.handle = NULL;
- get_appdata()->conns[index].render.espp.audio_track_preparing = false;
- get_appdata()->conns[index].render.espp.video_track_preparing = false;
+ get_appdata()->conns[index].render.espp.audio_track_preparing = true;
+ get_appdata()->conns[index].render.espp.video_track_preparing = true;
g_mutex_clear(&get_appdata()->conns[index].render.espp.mutex);
g_cond_clear(&get_appdata()->conns[index].render.espp.cond);
}
bool is_audio = (type == WEBRTC_MEDIA_TYPE_AUDIO) ? true : false;
bool *espp_track_preparing = is_audio ? &conn->render.espp.audio_track_preparing : &conn->render.espp.video_track_preparing;
bool *espp_track_preparing_oppsite = is_audio ? &conn->render.espp.video_track_preparing : &conn->render.espp.audio_track_preparing;
+ bool *opposite_type_exist = is_audio ? &conn->encoded_video_frame_cb_is_set : &conn->encoded_audio_frame_cb_is_set;
if (!conn)
return false;
(void *)&conn->render.espp.video_info);
esplusplayer_activate(conn->render.espp.handle, espp_infos[type].stream_type);
- if (!(*espp_track_preparing_oppsite)) {
+ if (!*opposite_type_exist || !(*espp_track_preparing_oppsite)) {
g_print("espp prepare async\n");
esplusplayer_prepare_async(conn->render.espp.handle);