func (p *Peer) Answer(msg *proto.ClientAnswerMsg) error {
	log.Infof("peer answer:  uid=%s, msg=%v", p.uid, msg)

	sfu, err := p.sfu()
	if err != nil {
		log.Warnf("sfu-node not found, %s", err.Error())
		return err
	}

	if _, err := p.s.nrpc.Request(sfu, proto.SfuAnswerMsg{
		MID:  p.mid,
		Desc: msg.Desc,
	}); err != nil {
		log.Errorf("answer %s error: %v", sfu, err.Error())
		return err
	}

	return nil
}
// Answer received Answer of client
Answer received Answer of client
// Answer received Answer of client
func (p *Peer) Answer(msg *proto.ClientAnswerMsg) error {
	log.Infof("peer answer:  uid=%s, msg=%v", p.uid, msg)
	sfu, err := p.sfu()
	if err != nil {
		log.Warnf("sfu-node not found, %s", err.Error())
		return err
	}
	if _, err := p.s.nrpc.Request(sfu, proto.SfuAnswerMsg{
		MID:  p.mid,
		Desc: msg.Desc,
	}); err != nil {
		log.Errorf("answer %s error: %v", sfu, err.Error())
		return err
	}
	return nil
}
func ( p * Peer ) Answer ( msg * proto . ClientAnswerMsg ) error { log . Infof ( " " , p . uid , msg ) sfu , err := p . sfu ( ) if err != nil { log . Warnf ( " " , err . Error ( ) ) return err } if _ , err := p . s . nrpc . Request ( sfu , proto . SfuAnswerMsg { MID : p . mid , Desc : msg . Desc , } ) ; err != nil { log . Errorf ( " " , sfu , err . Error ( ) ) return err } return nil }
Answer received Answer of client
Answer received Answer of client