mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 17:47:11 +00:00
Add comments
This commit is contained in:
parent
473808ca6e
commit
036e086123
1 changed files with 10 additions and 6 deletions
|
|
@ -19,18 +19,22 @@ import (
|
|||
type Room struct {
|
||||
ID string
|
||||
|
||||
// imageChannel is image stream from director
|
||||
imageChannel chan *image.RGBA
|
||||
// audioChannel is audio stream from director
|
||||
audioChannel chan float32
|
||||
// inputChannel is input stream from websocket to room
|
||||
inputChannel chan int
|
||||
IsRunning bool
|
||||
// Done channel is to fire exit event when there is no webRTC session running
|
||||
// State of room
|
||||
IsRunning bool
|
||||
// Done channel is to fire exit event when room is closed
|
||||
Done chan struct{}
|
||||
|
||||
rtcSessions []*webrtc.WebRTC
|
||||
// List of peerconnections in the room
|
||||
rtcSessions []*webrtc.WebRTC
|
||||
// NOTE: Not in use, lock rtcSessions
|
||||
sessionsLock *sync.Mutex
|
||||
|
||||
// Director is emulator
|
||||
director *emulator.Director
|
||||
|
||||
// Cloud storage to store room state online
|
||||
onlineStorage *storage.Client
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue