func CreateServer(ctx context.Context, localIP string, port int, camera *libipcamera.Camera) *Server {
	server := &Server{
		localIP:       localIP,
		localPort:     port,
		camera:        camera,
		remoteRTPPort: 0,
		remoteIP:      "",
		sdp:           "v=0\r\ns=ActionCamera\r\nm=video 0 RTP/AVP 99\r\na=rtpmap:99 H264/90000",
		context:       ctx,
	}
	return server
}
CreateServer creates a new Server instance
package rtsp
import (
	"bufio"
	"context"
	"crypto/md5"
	"fmt"
	"log"
	"net"
	"strconv"
	"strings"
	"github.com/jonas-koeritz/actioncam/libipcamera"
)
type Server struct {
	localIP       string
	localPort     int
	listener      net.Listener
	remoteRTPPort int
	remoteIP      string
	rtpRelay      *libipcamera.RTPRelay
	camera        *libipcamera.Camera
	sdp           string
	context       context.Context
}