| 689 | } |
| 690 | |
| 691 | void CAPIExampleDlg::ReleaseScene(CTreeCtrl& treeScene, HTREEITEM& hSelectItem) |
| 692 | { |
| 693 | std::lock_guard<std::mutex>_lock(m_mutex); |
| 694 | CString str = treeScene.GetItemText(hSelectItem); |
| 695 | if (str.Compare(basicLiveBroadcasting) == 0 |
| 696 | && m_pLiveBroadcasting->IsWindowVisible()) {//pre sel release first |
| 697 | m_pLiveBroadcasting->UnInitAgora(); |
| 698 | m_pLiveBroadcasting->ShowWindow(SW_HIDE); |
| 699 | } |
| 700 | else if (str.Compare(basicJoinChannelVideoByToken) == 0) { |
| 701 | m_pJoinChannelVideoByTokenDlg->UnInitAgora(); |
| 702 | m_pJoinChannelVideoByTokenDlg->ShowWindow(SW_HIDE); |
| 703 | } |
| 704 | else if (str.Compare(advancedRtmpInject) == 0) { |
| 705 | m_pRtmpInjectDlg->UnInitAgora(); |
| 706 | m_pRtmpInjectDlg->ShowWindow(SW_HIDE); |
| 707 | } |
| 708 | else if (str.Compare(advancedRtmpStreaming) == 0) { |
| 709 | m_pRtmpStreamingDlg->UnInitAgora(); |
| 710 | m_pRtmpStreamingDlg->ShowWindow(SW_HIDE); |
| 711 | } |
| 712 | else if (str.Compare(advancedCrossChannel) == 0) { |
| 713 | m_pAgoraCrossChannelDlg->UnInitAgora(); |
| 714 | m_pAgoraCrossChannelDlg->ShowWindow(SW_HIDE); |
| 715 | } |
| 716 | else if (str.Compare(advancedMetadata) == 0) { |
| 717 | m_pVideoSEIDlg->UnInitAgora(); |
| 718 | m_pVideoSEIDlg->ShowWindow(SW_HIDE); |
| 719 | } |
| 720 | else if (str.Compare(advancedScreenCap) == 0) { |
| 721 | m_pScreenCap->UnInitAgora(); |
| 722 | m_pScreenCap->ShowWindow(SW_HIDE); |
| 723 | } |
| 724 | else if (str.Compare(advancedCustomVideoCapture) == 0) { |
| 725 | m_pPushExternalVideoYUV->UnInitAgora(); |
| 726 | m_pPushExternalVideoYUV->ShowWindow(SW_HIDE); |
| 727 | } |
| 728 | else if (str.Compare(advancedCustomAudioCapture) == 0) { |
| 729 | m_pCaptureAudioDlg->UnInitAgora(); |
| 730 | m_pCaptureAudioDlg->ShowWindow(SW_HIDE); |
| 731 | } |
| 732 | else if (str.Compare(advancedAudioProfile) == 0) { |
| 733 | m_pAudioProfileDlg->UnInitAgora(); |
| 734 | m_pAudioProfileDlg->ShowWindow(SW_HIDE); |
| 735 | } |
| 736 | else if (str.Compare(advancedAudioMixing) == 0) { |
| 737 | m_pAudioMixingDlg->UnInitAgora(); |
| 738 | m_pAudioMixingDlg->ShowWindow(SW_HIDE); |
| 739 | } |
| 740 | else if (str.Compare(advancedOriginalVideo) == 0) { |
| 741 | m_pOriginalVideoDlg->UnInitAgora(); |
| 742 | m_pOriginalVideoDlg->ShowWindow(SW_HIDE); |
| 743 | } |
| 744 | else if (str.Compare(advancedOriginalAudio) == 0) { |
| 745 | m_pOriginalAudioDlg->UnInitAgora(); |
| 746 | m_pOriginalAudioDlg->ShowWindow(SW_HIDE); |
| 747 | } |
| 748 | else if (str.Compare(advancedFaceCapture) == 0) { |
nothing calls this directly
no test coverage detected