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(); }
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(); }