// Start is called before the first frame update void Start() { fixedSampleType = sampleType; DumpDeviceInfo("video capturer devices", Sora.GetVideoCapturerDevices()); DumpDeviceInfo("audio recording devices", Sora.GetAudioRecordingDevices()); DumpDeviceInfo("audio playout devices", Sora.GetAudioPlayoutDevices()); if (!MultiSub) { var image = renderTarget.GetComponent <UnityEngine.UI.RawImage>(); image.texture = new Texture2D(640, 480, TextureFormat.RGBA32, false); } StartCoroutine(Render()); }
// Start is called before the first frame update void Start() { #if !UNITY_EDITOR && UNITY_ANDROID var x = WebCamTexture.devices; var y = Microphone.devices; #endif fixedSampleType = sampleType; DumpDeviceInfo("video capturer devices", Sora.GetVideoCapturerDevices()); DumpDeviceInfo("audio recording devices", Sora.GetAudioRecordingDevices()); DumpDeviceInfo("audio playout devices", Sora.GetAudioPlayoutDevices()); if (!MultiRecv) { var image = renderTarget.GetComponent <UnityEngine.UI.RawImage>(); image.texture = new Texture2D(640, 480, TextureFormat.RGBA32, false); } StartCoroutine(Render()); }