private IEnumerator GetChatId()
        {
            string searchChatURI = APIData.SearchChatURI();

            if (Debug.isDebugBuild)
            {
#if UNITY_EDITOR
                if (showDebugLog)
                {
                    Debug.Log(searchChatURI);
                }
#elif UNITY_STANDALONE
                Debug.Log(searchChatURI);
#endif
            }
            UnityWebRequest webRequest = UnityWebRequest.Get(searchChatURI);
            yield return(webRequest.SendWebRequest());

            if (webRequest.isHttpError || webRequest.isNetworkError)
            {
                Debug.Log(webRequest.error);
            }
            else
            {
                string jsonText = webRequest.downloadHandler.text;
                Json.LiveStreamingDetails.SerializedItems serializedItems = JsonUtility.FromJson <Json.LiveStreamingDetails.SerializedItems> (jsonText);
                if (serializedItems.items[0].liveStreamingDetails.activeLiveChatId == null)
                {
                    Debug.LogError("this broadcast is not started yet or already closed.");
                }
                else
                {
                    SetLiveStreamingDetails(serializedItems);
                    SetChatId(serializedItems);
                    currentChatCoroutine = StartCoroutine(GetChat());
                }
            }
            webRequest.Dispose();
        }