Exemplo n.º 1
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();
 }