コード例 #1
0
// readonly iceconnectionState
func (pc *PeerConnection) IceConnectionState() IceConnectionState {
	return (IceConnectionState)(C.CGO_IceConnectionState(pc.cgoPeer))
}
コード例 #2
0
// readonly connectionState
func (pc *PeerConnection) ConnectionState() PeerConnectionState {
	// TODO: Aggregate states according to:
	// https://w3c.github.io/webrtc-pc/#rtcpeerconnectionstate-enum
	return (PeerConnectionState)(C.CGO_IceConnectionState(pc.cgoPeer))
}