Documentation ¶
Index ¶
- func InitLoggerFile(filesDir string, filename string)
- func Initialize()
- func InsecureHttpTransport()
- func PreserveLogFile(filesDir string, filename string)
- func SetStorage(s PublicStorage)
- type BaseRoom
- type DatatrackDelegate
- type DeviceCurrentUser
- type DeviceRoomUser
- type DeviceState
- type JvBusterDelegate
- type JvbusterCallbacks
- type JvbusterPeerConnectionCallbacks
- type LiveRoom
- func (r *LiveRoom) Disconnect()
- func (r *LiveRoom) FullScreen(val bool)
- func (r *LiveRoom) ProcessDataChannelMessage(peerConnectionId, message string)
- func (r *LiveRoom) ProcessPeerConnectionState(peerConnectionId string, state int)
- func (r *LiveRoom) RemoveReaction(id string)
- func (r *LiveRoom) SendMessage(message string)
- func (r *LiveRoom) SendUserPath(toX float64, toY float64)
- func (r *LiveRoom) SetJvbusterSubscriptionType(subscriptionType string)
- func (r *LiveRoom) SetViewport(x1, y1, x2, y2 float64)
- func (r *LiveRoom) UpdateAudioLevel(level int)
- func (r *LiveRoom) UpdateVideoAudioPhoneState(videoEnabled bool, audioEnabled bool, isOnPhoneCall bool)
- type LiveRoomState
- type MediaDelegate
- type PeerConnectionState
- type Point
- type PublicHttpClient
- type PublicLogger
- type PublicStorage
- type RecordedRoom
- type RecordedRoomState
- type Rectangle
- type UserPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLoggerFile ¶
func Initialize ¶
func Initialize()
func InsecureHttpTransport ¶
func InsecureHttpTransport()
func PreserveLogFile ¶
func SetStorage ¶
func SetStorage(s PublicStorage)
Types ¶
type BaseRoom ¶
type BaseRoom struct {
// contains filtered or unexported fields
}
func (*BaseRoom) IsThereOtherAdmin ¶
type DatatrackDelegate ¶
type DatatrackDelegate interface { OnMessage(json string) OnReaction(json []byte) OnPath(userId string, x float64, y float64, duration float64) OnNativeState(json []byte) OnRadarVolume(json []byte) OnConnectionState(json []byte) OnPopupUsers(json string) OnChangeRoomMode(mode string, isFirstConnection bool) OnParticipantsVisibilityChanged(json string) OnStateChanged(newState int) }
type DeviceCurrentUser ¶
type DeviceRoomUser ¶
type DeviceRoomUser struct { Id string `json:"id"` Size float64 `json:"size"` IsLocal bool `json:"isLocal"` HasRadar bool `json:"hasRadar"` Name string `json:"name"` Surname string `json:"surname"` Avatar string `json:"avatar"` Mode string `json:"mode"` IsAdmin bool `json:"isAdmin"` IsExpired bool `json:"isExpired"` InRadar bool `json:"inRadar"` Video bool `json:"video"` Audio bool `json:"audio"` PhoneCall bool `json:"phoneCall"` IsSpecialGuest bool `json:"isSpecialGuest"` IsAbsoluteSpeaker bool `json:"isAbsoluteSpeaker"` Badges []string `json:"badges"` }
type DeviceState ¶
type DeviceState struct { Current *DeviceCurrentUser `json:"current"` Room []*DeviceRoomUser `json:"room"` ListenersCount int `json:"listenersCount"` RaisedHandsCount int `json:"raisedHandsCount"` HandsAllowed bool `json:"handsAllowed"` AbsoluteSpeakerPresent bool `json:"absoluteSpeakerPresent"` }
type JvBusterDelegate ¶
type JvBusterDelegate interface { Init(callbacks JvbusterCallbacks) InitializeRTCPeerConnection(userId string, id string, isMain bool, isSpeaker bool, sdpOffer string, callbacks JvbusterPeerConnectionCallbacks) string SetLocalRTCPeerConnectionDescription(id string, description string) SendMessageToDataChannel(id string, message string) ProcessMetaAdd(json string) ProcessMetaRemove(json string) OnError(error string) DestroyPeerConnections() }
type JvbusterCallbacks ¶
type LiveRoom ¶
type LiveRoom struct { BaseRoom // contains filtered or unexported fields }
func ConnectToLiveRoom ¶
func ConnectToLiveRoom( datatrackDelegate DatatrackDelegate, wsUrl, roomId, accessToken, roomPass string, roomWidthMul, roomHeightMul, adaptiveBubbleSize, screenPositionX, screenPositionY, screenPositionWidth, screenPositionHeight, devicePixelRatio float64, jvbusterDelegate JvBusterDelegate, jvbusterAddress, jvbusterToken string, fullResCircleDiameterInch, viewportWidthInch float64, videoBandwidth, audioBandwidth int, ) (*LiveRoom, error)
func (*LiveRoom) Disconnect ¶
func (r *LiveRoom) Disconnect()
func (*LiveRoom) FullScreen ¶
func (*LiveRoom) ProcessDataChannelMessage ¶
func (*LiveRoom) ProcessPeerConnectionState ¶
func (*LiveRoom) RemoveReaction ¶
func (*LiveRoom) SendMessage ¶
func (*LiveRoom) SendUserPath ¶
func (*LiveRoom) SetJvbusterSubscriptionType ¶
func (*LiveRoom) SetViewport ¶
func (*LiveRoom) UpdateAudioLevel ¶
type LiveRoomState ¶
type LiveRoomState int32
const ( LiveRoomStateConnecting LiveRoomState = iota LiveRoomStateConnected LiveRoomStateClosed )
func (LiveRoomState) String ¶
func (s LiveRoomState) String() string
type MediaDelegate ¶
type PeerConnectionState ¶
type PeerConnectionState int32
const ( PeerConnectionStateNew PeerConnectionState = iota PeerConnectionStateConnecting PeerConnectionStateConnected PeerConnectionStateDisconnected PeerConnectionStateFailed PeerConnectionStateClosed )
func (PeerConnectionState) String ¶
func (s PeerConnectionState) String() string
type PublicLogger ¶
func NewLogger ¶
func NewLogger(caller string) PublicLogger
type PublicStorage ¶
type RecordedRoom ¶
type RecordedRoom struct { BaseRoom // contains filtered or unexported fields }
func ReplayRecordedRoom ¶
func ReplayRecordedRoom( roomHttpUrl string, datatrackDelegate DatatrackDelegate, roomWidthMul, roomHeightMul, adaptiveBubbleSize, devicePixelRatio float64, mediaDelegate MediaDelegate, ) (*RecordedRoom, error)
todo: add timeout
func (*RecordedRoom) Stop ¶
func (r *RecordedRoom) Stop()
type RecordedRoomState ¶
type RecordedRoomState int32
const ( RecordedRoomStateStarted RecordedRoomState = iota RecordedRoomStatePaused RecordedRoomStateStopped )
func (RecordedRoomState) String ¶
func (s RecordedRoomState) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.