예제 #1
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();
 }
예제 #2
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();
 }