MCPcopy Create free account

hub / github.com/Glimesh/broadcast-box / functions

Functions380 in github.com/Glimesh/broadcast-box

↓ 18 callersFunctionLogHTTPError
(responseWriter http.ResponseWriter, error string, code int)
internal/server/helpers/log.go:8
↓ 16 callersMethodClose
Closes down the WHEP session completely
internal/webrtc/sessions/whep/whep.go:42
↓ 8 callersFunctionCreateTrackMultiCodec
(id string, rid string, streamID string, kind webrtc.RTPCodecType, codec TrackCodeType)
internal/webrtc/codecs/track_multi_codec.go:52
↓ 8 callersFunctionclearAdminToken
()
web/src/components/admin/adminAuth.ts:5
↓ 8 callersMethodclose
Remove all Hosts and clients before closing down session
internal/webrtc/sessions/session/session.go:141
↓ 8 callersFunctiongetAdminAuthorizationHeader
(token?: string | null)
web/src/components/admin/adminAuth.ts:9
↓ 7 callersFunctionisInvalidAdminSessionResponse
(status: number)
web/src/components/admin/adminAuth.ts:13
↓ 7 callersFunctionverifyAdminSession
Verify that a bearer token is provided for an admin session A response will be written to the response writter if the session is valid
internal/server/handlers/admin/helpers.go:21
↓ 7 callersFunctionverifyValidMethod
Verify the expected method and return true or false if the method is as expected This will write a default METHOD NOT ALLOWED response on the response
internal/server/handlers/admin/helpers.go:49
↓ 6 callersFunctionResolveBearerToken
Resolve Bearer token. This supports both a B64 token as well as a regular ASCII token to allow for using special characters for stream keys that are n
internal/server/helpers/token.go:14
↓ 6 callersMethodSendPLI
()
internal/webrtc/sessions/whep/whep.go:131
↓ 5 callersFunctionCreateProfile
Create a new profile for the provided streamkey
internal/server/authorization/stream_profile.go:26
↓ 4 callersMethodBind
(streamKey string, peerID string, dataChannel *webrtc.DataChannel)
internal/webrtc/chatdc/chatdc.go:49
↓ 4 callersFunctionCreateNewWHEP
Create and start a new WHEP session
internal/webrtc/sessions/whep/whep.go:12
↓ 4 callersMethodRID
()
internal/webrtc/codecs/track_multi_codec.go:44
↓ 4 callersMethodSendVideoPacket
Sends provided video packet to the WHEP session
internal/webrtc/sessions/whep/packet_writer.go:40
↓ 4 callersFunctionassureProfilePath
()
internal/server/authorization/helpers.go:13
↓ 4 callersFunctiongetIcon
(icon: IconType)
web/src/components/shared/Icons.tsx:4
↓ 4 callersFunctionrefreshProfiles
()
web/src/components/admin/menus/ProfilesPage.tsx:30
↓ 4 callersMethodsend
(text: string, displayName: string)
web/src/hooks/useChatSession.ts:19
↓ 4 callersMethodupdateHostWHEPSessionsSnapshot
()
internal/webrtc/sessions/session/session.go:223
↓ 3 callersFunctionCallWebhook
(url string, action action, bearerToken string, request *http.Request)
internal/server/webhook/webhook.go:33
↓ 3 callersMethodGetSessionAndWHEPByID
(sessionID string)
internal/webrtc/sessions/manager/manager.go:191
↓ 3 callersMethodGetSessionByID
Get Session by id
internal/webrtc/sessions/manager/manager.go:64
↓ 3 callersMethodGetStreamStatus
Get the status of the current session
internal/webrtc/sessions/session/session.go:254
↓ 3 callersMethodRemoveHost
()
internal/webrtc/sessions/session/session.go:95
↓ 3 callersMethodUnbind
(context webrtc.TrackLocalContext)
internal/webrtc/codecs/track_multi_codec.go:134
↓ 3 callersMethodgetOrCreateRoomLocked
(streamKey string, now time.Time)
internal/chat/store_in_memory.go:236
↓ 3 callersFunctiongetProfileFileNameByBearerToken
(bearerToken string)
internal/server/authorization/helpers.go:77
↓ 3 callersFunctiongetProfileFileNameByStreamKey
(streamKey string)
internal/server/authorization/helpers.go:59
↓ 3 callersMethodnotifyClosed
()
internal/webrtc/sessions/whip/peerconnection.go:14
↓ 3 callersMethodresolve
()
web/src/components/player/functions/chatDataChannel.ts:29
↓ 3 callersMethodstreamKey
()
internal/server/authorization/stream_profile_types.go:17
↓ 3 callersFunctiontoBase64Utf8
(input: string | null | undefined)
web/src/utilities/base64.ts:1
↓ 3 callersFunctionunsubscribe
()
web/src/hooks/useChatSession.ts:55
↓ 2 callersFunctionAppendCandidateToAnswer
Appends a candidate to the list of candidates that are sent back to the client in the answer
internal/webrtc/utils/append_answer.go:11
↓ 2 callersMethodBind
(ctx webrtc.TrackLocalContext)
internal/webrtc/codecs/track_multi_codec.go:62
↓ 2 callersMethodClose
()
internal/webrtc/sessions/session/session.go:164
↓ 2 callersFunctionDebugOutputAnswer
(answer string)
internal/webrtc/utils/logging.go:19
↓ 2 callersFunctionGetFrontendPath
()
internal/environment/environment.go:85
↓ 2 callersFunctionGetLogFileReader
()
internal/environment/logger.go:75
↓ 2 callersMethodGetOrAddSession
Get the stream requested, or create it, and add it to the sessions context
internal/webrtc/sessions/manager/manager.go:49
↓ 2 callersFunctionGetPersonalProfile
Returns the publicly available profile
internal/server/authorization/stream_profile.go:151
↓ 2 callersMethodGetSessionByHostSessionID
(sessionID string)
internal/webrtc/sessions/manager/manager.go:207
↓ 2 callersMethodGetSessionStates
Gets the current state of all sessions
internal/webrtc/sessions/manager/manager.go:75
↓ 2 callersMethodGetWHEPSessionByID
Get Session by id
internal/webrtc/sessions/manager/manager.go:166
↓ 2 callersFunctionIsProfileReserved
(streamKey string)
internal/server/authorization/stream_profile.go:215
↓ 2 callersFunctionNewManager
()
internal/chat/chat.go:56
↓ 2 callersFunctionRegisterCodecs
(mediaEngine *webrtc.MediaEngine)
internal/webrtc/codecs/register.go:10
↓ 2 callersMethodRemovePeerConnection
()
internal/webrtc/sessions/whip/peerconnection.go:40
↓ 2 callersFunctionRemoveProfile
(streamKey string)
internal/server/authorization/stream_profile.go:104
↓ 2 callersMethodRemoveTracks
Remove Audio and Video tracks coming from the whip session id
internal/webrtc/sessions/whip/track.go:65
↓ 2 callersFunctionResetProfileToken
(streamKey string)
internal/server/authorization/stream_profile.go:222
↓ 2 callersMethodSendText
(s string)
internal/webrtc/sessions/session/datachannels.go:18
↓ 2 callersMethodSendToStream
(streamKey string, text string, displayName string, now time.Time)
internal/chat/chat.go:45
↓ 2 callersMethodSetVideoLayer
Sets the requested video layer for this WHEP session.
internal/webrtc/sessions/whep/whep.go:118
↓ 2 callersMethodStop
()
internal/chat/chat.go:135
↓ 2 callersMethodSubscribeStream
(streamKey string, lastEventID uint64, now time.Time)
internal/chat/chat.go:43
↓ 2 callersFunctionValidateOffer
(offer string)
internal/webrtc/utils/offer_validator.go:5
↓ 2 callersFunctionWHIPHandler
(responseWriter http.ResponseWriter, request *http.Request)
internal/server/handlers/whip/whip.go:20
↓ 2 callersMethodWriteRTP
(_ *rtp.Header, payload []byte)
internal/webrtc/sessions/whep/packet_writer_test.go:32
↓ 2 callersMethodWriteRTP
(header *rtp.Header, payload []byte)
internal/webrtc/codecs/track_multi_codec_test.go:30
↓ 2 callersMethodaddDataChannelPeer
(peerID string, channel dataChannelSender)
internal/webrtc/sessions/session/datachannels.go:105
↓ 2 callersMethodbroadcastDataChannelFrom
(sender *dataChannelPeer, payload []byte, isString bool)
internal/webrtc/sessions/session/datachannels.go:131
↓ 2 callersMethoddetachChannel
()
web/src/components/player/functions/chatDataChannel.ts:144
↓ 2 callersFunctiongenerateToken
()
internal/server/authorization/helpers.go:110
↓ 2 callersFunctiongetBase64String
In case the bearer token is encoded in Base64, it can be resolved before return. This allows for UTF-8 character support in headers with bearer tokens
internal/server/helpers/token.go:41
↓ 2 callersFunctiongetHTTPRedirectAddress
()
internal/server/http.go:39
↓ 2 callersFunctiongetLogfilePath
()
internal/environment/logger.go:112
↓ 2 callersFunctiongetPeerConnectionConfig
()
internal/webrtc/peerconnection/get_configuration.go:11
↓ 2 callersFunctiongetSettingEngine
(isWHIP bool, tcpMuxCache map[string]ice.TCPMux, udpMuxCache map[int]*ice.MultiUDPMuxDefault)
internal/webrtc/settings.go:24
↓ 2 callersFunctionhasExistingBearerToken
(bearerToken string)
internal/server/authorization/helpers.go:41
↓ 2 callersMethodisEmpty
Returns true is no WHIP tracks are present, and no WHEP sessions are waiting for incoming streams
internal/webrtc/sessions/session/session.go:170
↓ 2 callersFunctionisValidStreamKey
(streamKey string)
internal/server/authorization/stream_profile.go:20
↓ 2 callersFunctiononVolumeChange
(newValue: number)
web/src/components/player/components/VolumeComponent.tsx:15
↓ 2 callersFunctionpatchPeerConnection
(peerConnection *webrtc.PeerConnection, body string)
internal/webrtc/webrtc.go:104
↓ 2 callersMethodregisterDataChannelHandlers
(peerConnection *webrtc.PeerConnection, peerID string)
internal/webrtc/sessions/session/datachannels.go:28
↓ 2 callersMethodreject
(error: Error)
web/src/components/player/functions/chatDataChannel.ts:30
↓ 2 callersMethodrejectPending
(reason: string)
web/src/components/player/functions/chatDataChannel.ts:159
↓ 2 callersMethodremoveDataChannelPeer
(peer *dataChannelPeer)
internal/webrtc/sessions/session/datachannels.go:118
↓ 2 callersMethodsendToRoom
(r *room, text string, displayName string, now time.Time)
internal/chat/store_in_memory.go:205
↓ 2 callersMethodsettlePending
(clientMsgId: string, error?: Error)
web/src/components/player/functions/chatDataChannel.ts:62
↓ 2 callersFunctionsetupLoggerForDate
(date string)
internal/environment/logger.go:50
↓ 2 callersFunctionstreamKeyFromFileName
Profile files are named <streamKey>_<token>. The token never contains an underscore, but the stream key may, so split on the last one.
internal/server/authorization/helpers.go:101
↓ 2 callersMethodsubscribeToRoom
(r *room, lastEventID uint64, now time.Time)
internal/chat/store_in_memory.go:161
↓ 2 callersMethodupdateVideoBitrateLocked
(now time.Time)
internal/webrtc/sessions/whep/whep.go:151
↓ 1 callersMethodAddHost
Add host
internal/webrtc/sessions/session/session.go:55
↓ 1 callersMethodAddPeerConnection
(peerConnection *webrtc.PeerConnection, streamKey string)
internal/webrtc/sessions/whip/peerconnection.go:22
↓ 1 callersMethodAddWHEP
Add WHEP viewer session
internal/webrtc/sessions/session/session.go:29
↓ 1 callersMethodCleanup
(now time.Time, ttl time.Duration)
internal/chat/chat.go:46
↓ 1 callersMethodCodecParameters
()
internal/webrtc/codecs/track_multi_codec_test.go:18
↓ 1 callersMethodConnect
(streamKey string, now time.Time)
internal/chat/chat.go:39
↓ 1 callersMethodConnect
(streamKey string)
internal/chat/chat.go:94
↓ 1 callersFunctionCreateWHEPPeerConnection
()
internal/webrtc/peerconnection/peer_connections.go:10
↓ 1 callersFunctionCreateWHIPPeerConnection
(offer string)
internal/webrtc/peerconnection/peer_connections.go:14
↓ 1 callersFunctionDebugOutputOffer
(offer string)
internal/webrtc/utils/logging.go:11
↓ 1 callersFunctionGetAdminProfilesAll
Returns a slice of profiles intended for admin endpoints
internal/server/authorization/stream_profile.go:176
↓ 1 callersFunctionGetAudioTrackCodec
(codec string)
internal/webrtc/codecs/codecs.go:165
↓ 1 callersMethodGetAvailableLayersEvent
Returns all available Video and Audio layers of the provided stream key
internal/webrtc/sessions/whip/sse.go:9
↓ 1 callersFunctionGetDefaultTracks
(streamKey string)
internal/webrtc/codecs/codecs.go:147
next →1–100 of 380, ranked by callers