@@ -87,18 +87,14 @@ export const Game = {
87
87
}
88
88
89
89
CoreContext . on ( 'ActiveProjectChanged' , ( { projectId } ) => {
90
- log . info ( 'ActiveProjectChanged' )
91
90
const project = toBaseProject ( getProject ( projectId ) )
92
- log . info ( 'Project & Sources' , project . sources , project )
93
91
const sources = project . sources . filter (
94
92
( s ) => s . props . type === 'integration' ,
95
93
)
96
- log . info ( 'Available sources' , sources )
97
94
updateGameSources ( sources )
98
95
} )
99
96
100
97
CoreContext . onInternal ( 'SourceConnected' , async ( id ) => {
101
- log . info ( 'SourceConnected' , id )
102
98
const srcObject = gameSourceStreams [ id ]
103
99
const deviceStream = await connectDevice ( id )
104
100
const source = getSource ( `game-${ id } ` )
@@ -122,7 +118,6 @@ export const Game = {
122
118
} )
123
119
124
120
CoreContext . onInternal ( 'SourceDisconnected' , ( id ) => {
125
- log . info ( 'SourceDisconnected' , id )
126
121
const stream = gameSourceStreams [ id ]
127
122
const tracks = stream ?. getTracks ( )
128
123
tracks . forEach ( ( track ) => {
@@ -131,15 +126,13 @@ export const Game = {
131
126
} )
132
127
133
128
CoreContext . on ( 'ProjectSourceAdded' , ( { source, projectId } ) => {
134
- log . info ( 'ProjectSourceAdded' , source , projectId )
135
129
const project = toBaseProject ( getProject ( projectId ) )
136
130
updateGameSources (
137
131
project . sources . filter ( ( s ) => s ?. props ?. type === 'integration' ) ,
138
132
)
139
133
} )
140
134
141
135
CoreContext . on ( 'ProjectSourceRemoved' , ( { sourceId, projectId } ) => {
142
- log . info ( 'ProjectSourceRemoved' , sourceId , projectId )
143
136
const project = toBaseProject ( getProject ( projectId ) )
144
137
updateGameSources (
145
138
project . sources . filter ( ( s ) => s ?. props ?. type === 'integration' ) ,
0 commit comments