Пример #1
0
    public void OnLoudspeakerToggle()
    {
        //watch out the on state of the toggle means
        //the icon is crossed out thus
        //isOn == true means the speaker is off
        bool state = !uLoudspeakerToggle.isOn;

        mApp.SetLoudspeakerStatus(state);
        //read if the state actually changed
        RefreshLoudspeakerToggle();
    }
Пример #2
0
    private void SetupCallApp()
    {
        //Set true to allow sending video and audio to other connections
        mApp.SetAudio(true);
        mApp.SetLoudspeakerStatus(true);
        mApp.SetRemoteVolume(1);
        mApp.SetVideo(false);

        mApp.SetAutoRejoin(uRejoinToggle.isOn);
        mApp.SetupCall();
        EnsureLength();
        Append("Trying to listen on address " + uRoomNameInputField.text);
        mApp.Join(uRoomNameInputField.text);
    }
Пример #3
0
    public void OnSpeakerButtonPressed()
    {
        bool speakerState = mApp.GetLoudspeakerStatus();

        mApp.SetLoudspeakerStatus(!speakerState);
    }