예제 #1
0
        void Awake()
        {
            try {
                ShareRECImpl.Init(AppKey, AppSecret, gameObject.name, (int)MaxFrameSize);
                ShareRECImpl.SetVideoQuality((int)VideoQuality);

                //获取手机型号信息,判断是否开启GLES30API
                bool NeedOpenGLES30 = false;
                if (NeedOpenGLES30)
                {
                    useGLES30API();
                }
                ShareRECImpl.SetForceSoftwareEncoding(SoftwareVideoEncoder, SoftwareAudioEncoder);
                ShareRECImpl.SetCacheFolder(CacheFolder);
                ShareRECImpl.SetMinDuration(MinDuration);
                if (RecordAudioFromMic)
                {
                    ShareRECImpl.SetRecordAudioFromMic();
                }
                if (RecordGUILayer)
                {
                    ShareRECImpl.SetRecordGUILayer();
                }
            } catch (Exception e) {}
            InitializeFrontMostCamera();
            InitializeBackMostCamera();
        }
예제 #2
0
 void Awake()
 {
     try {
         ShareRECImpl.init(AppKey, AppSecret, gameObject.name, (int)MaxFrameSize);
         ShareRECImpl.SetBitRate(BitRate <= 0 ? 1572864 : BitRate);
         if (RecordAudioFromMic)
         {
             ShareRECImpl.SetRecordAudioFromMic();
         }
     } catch (Exception e) {}
     InitializeFrontMostCamera();
     InitializeBackMostCamera();
 }
예제 #3
0
 void Awake()
 {
     try {
         ShareRECImpl.init(AppKey, AppSecret, gameObject.name, (int)MaxFrameSize);
         ShareRECImpl.SetVideoQuality((int)VideoQuality);
         ShareRECImpl.setForceSoftwareEncoding(SoftwareVideoEncoder, SoftwareAudioEncoder);
         ShareRECImpl.setCacheFolder(CacheFolder);
         ShareRECImpl.setMinDuration(MinDuration);
         if (RecordAudioFromMic)
         {
             ShareRECImpl.SetRecordAudioFromMic();
         }
     } catch (Exception e) {}
     InitializeFrontMostCamera();
     InitializeBackMostCamera();
 }