func NewSession(SDPReader io.Reader, SDPWriter io.Writer) Session {
	sess := Session{
		sdpReader: SDPReader,
		sdpWriter: SDPWriter,
		encoding:  FrameEncodingProto,
	}
	return sess
}
New creates a new Session
package streamer
import (
	"bufio"
	"fmt"
	"io"
	"strings"
	"sync"
	webrtc "github.com/pion/webrtc/v3"
	log "github.com/sirupsen/logrus"
)
const (
	SDP_OFFER_PROMPT          = "Send this offer:"
	SDP_OFFER_WAITING_PROMPT  = "Please, paste the remote offer:"
	SDP_ANSWER_PROMPT         = "Send this answer:"
	SDP_ANSWER_WAITING_PROMPT = "Please, paste the remote answer:"
)
var (
	ICEServerList = []webrtc.ICEServer{
		{
			URLs: []string{
				"stun:stun.l.google.com:19302",
			},
		},
	}
)
type CompletionHandler func()
type Session struct {
	sdpReader      io.Reader
	sdpWriter      io.Writer
	peerConnection *webrtc.PeerConnection
	onCompletion   CompletionHandler
	encoding       FrameEncoding
}