disable EnableWebRtcLog to avoid warning no-main-thread calling
update logic for new meida constraint refactoring design