Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWebRTCConnection ¶
func CreateWebRTCConnection(ingestionAddress, streamKey, offerStr string) (answer webrtc.SessionDescription, err error)
CreateWebRTCConnection function
func DecodeJSONBody ¶
func DecodeJSONBody(w http.ResponseWriter, r *http.Request, dst interface{}) error
DecodeJSONBody helper function
func InitializeRoutes ¶
func InitializeRoutes()
InitializeRoutes exported function to intiailize routes
Types ¶
type OfferDescription ¶
type OfferDescription struct { Offer string `json:"offer"` IngestionAddress string `json:"ingestionAddress"` StreamKey string `json:"streamKey"` }
OfferDescription object
Click to show internal directories.
Click to hide internal directories.