Ejemplo n.º 1
0
        //Checks if the network and media component are available
        public static bool IsAvailable()
        {
#if UNITY_WEBGL
            try
            {
                //js side will check if all needed functions are available and if the browser is supported
                return(BrowserWebRtcNetwork.IsAvailable() && CAPI.Unity_MediaNetwork_IsAvailable());
            }
            catch (EntryPointNotFoundException)
            {
                //method is missing entirely
            }
#endif
            return(false);
        }