function schedule_recording($name, $folderid, $start, $end, $primaryrecorderid, $secondaryrecorderid = '', $isbroadcast = false) {
        $recordersettings = array();

        $primaryrecorder = $this->get_recorder($primaryrecorderid);
        $recordersetting = new \Panopto\RemoteRecorderManagement\RecorderSettings();
        $recordersetting->setRecorderId($primaryrecorder->getId());
        $recordersetting->setSuppressPrimary(false);
        $recordersetting->setSuppressSecondary(false);
        $recordersettings[] = $recordersetting;

        if ($secondaryrecorderid) {
            $secondaryrecorder = $this->get_recorder($secondaryrecorderid);
            $recordersetting = new \Panopto\RemoteRecorderManagement\RecorderSettings();
            $recordersetting->setRecorderId($secondaryrecorder->getId());
            $recordersetting->setSuppressPrimary(true);
            $recordersetting->setSuppressSecondary(false);
            $recordersettings[] = $recordersetting;
        }

        $params = new \Panopto\RemoteRecorderManagement\ScheduleRecording($this->auth, $name, $folderid, $isbroadcast, $start, $end, $recordersettings);
        $response = $this->rrmclient->ScheduleRecording($params)->getScheduleRecordingResult();
        return $response;
    }