MCPcopy Create free account

hub / github.com/chuabingquan/pxy / functions

Functions27 in github.com/chuabingquan/pxy

↓ 5 callersMethodClose
Close closes the socket.
http/server.go:29
↓ 4 callersFunctiontoggleControls
(livestreamStarted)
static/js/main.js:52
↓ 3 callersMethodStopBroadcast
()
model.go:6
↓ 2 callersFunctionwriteJSONMessage
(w http.ResponseWriter, statusCode int, body interface{})
http/response.go:12
↓ 1 callersFunctionNewLivestreamPool
NewLivestreamPool ...
http/websockets/pool.go:33
↓ 1 callersFunctionNewStaticHandler
NewStaticHandler ...
http/static.go:15
↓ 1 callersFunctionNewStreamHandler
NewStreamHandler ...
http/stream.go:18
↓ 1 callersMethodOpen
Open opens a socket and serves the HTTP server.
http/server.go:16
↓ 1 callersMethodPipeToBroadcast
(stream *[]byte)
model.go:7
↓ 1 callersMethodRegisterStreamer
(sessionID, userID, streamKey string, w http.ResponseWriter, r *http.Request)
http/livestream_updates.go:7
↓ 1 callersMethodStartBroadcast
()
model.go:5
↓ 1 callersFunctionconnect
(url, streamKey)
static/js/main.js:34
↓ 1 callersFunctiongetWebsocketStreamKey
(r *http.Request)
http/stream.go:46
↓ 1 callersFunctioninitCamera
(constraints, videoEl)
static/js/main.js:18
↓ 1 callersFunctionnewLivestreamConnection
(sessionID, userID, streamKey string, conn *websocket.Conn)
http/websockets/connection.go:16
FunctionNewRTMPClient
NewRTMPClient ...
rtmp/broadcast.go:24
MethodPipeToBroadcast
PipeToBroadcast ...
rtmp/broadcast.go:77
MethodRegisterStreamer
RegisterStreamer ...
http/websockets/pool.go:48
MethodRemoveStreamer
(sessionID string)
http/livestream_updates.go:8
MethodRemoveStreamer
RemoveStreamer ...
http/websockets/pool.go:103
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
http/handler.go:15
MethodStartBroadcast
StartBroadcast ...
rtmp/broadcast.go:35
MethodStopBroadcast
StopBroadcast ...
rtmp/broadcast.go:67
MethodStreamerIsRegisteredForSession
(sessionID string)
http/livestream_updates.go:9
MethodStreamerIsRegisteredForSession
StreamerIsRegisteredForSession ...
http/websockets/pool.go:119
MethodhandleCreateLivestream
(w http.ResponseWriter, r *http.Request)
http/stream.go:29
Functionmain
()
cmd/pxy/main.go:21