Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

ReplayKit microphone?

Discussion in 'Editor & General Support' started by apaix, Oct 18, 2017.

  1. apaix

    apaix

    Joined:
    Aug 10, 2017
    Posts:
    21
    I'm trying to figure out how to enable the microphone whenver I start a replaykit recording.

    Setting ReplayKit.microphoneEnabled = true does nothing.

    Suggestions?
     
    ina likes this.
  2. soulaymanoboy

    soulaymanoboy

    Joined:
    Oct 12, 2018
    Posts:
    10
    hey bro ar u find the way ???
     
  3. erikhallgren

    erikhallgren

    Joined:
    Feb 2, 2015
    Posts:
    9
    For anyone looking for a solution to this issue I had the same issue. The microphone needed to be enabled/disabled when initiating the recording/broadcast for me.

    Examples:
    ReplayKit.StartRecording(micState, false);

    ReplayKit.StartBroadcasting((bool success, string error) =>
    {
    if (success)
    {
    }
    else
    {
    Debug.Log(string.Format("Start : {0}, error : `{1}`", success, error));
    }
    }, micState, false);
     
  4. tobetobe

    tobetobe

    Joined:
    Nov 22, 2016
    Posts:
    13
    Hi @erikhallgren could you explain how did you "enabled/disabled when initiating the recording"? Thanks!