Skip to content

Commit

Permalink
send useOptimizedProfile flag if it's true (stream-labs#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiber authored Feb 12, 2019
1 parent 5e9bffc commit fb3ea52
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/services/streaming/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,16 @@ export class StreamingService extends StatefulService<IStreamingServiceState>
console.error('Error fetching stream encoder info: ', e);
}

this.usageStatisticsService.recordEvent('stream_start', {
const eventMetadata: Dictionary<any> = {
...streamEncoderInfo,
game,
useOptimizedProfile: this.videoEncodingOptimizationService.state.useOptimizedProfile,
});
};

if (this.videoEncodingOptimizationService.state.useOptimizedProfile) {
eventMetadata.useOptimizedProfile = true;
}

this.usageStatisticsService.recordEvent('stream_start', eventMetadata);
} else if (info.signal === EOBSOutputSignal.Starting) {
this.SET_STREAMING_STATUS(EStreamingState.Starting, time);
this.streamingStatusChange.next(EStreamingState.Starting);
Expand Down

0 comments on commit fb3ea52

Please sign in to comment.