Skip to content

Commit

Permalink
fix toggle recording (#5256)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinoffers authored Dec 12, 2024
1 parent 208c619 commit 064eb1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/services/highlighter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,10 @@ export class HighlighterService extends PersistentStatefulService<IHighlighterSt
if (status === EStreamingState.Live) {
streamStarted = true; // console.log('live', this.streamingService.views.settings.platforms.twitch.title);

if (!this.aiHighlighterEnabled) {
return;
}

if (this.views.useAiHighlighter === false) {
console.log('HighlighterService: Game:', this.streamingService.views.game);
// console.log('Highlighter not enabled or not Fortnite');
Expand All @@ -819,7 +823,7 @@ export class HighlighterService extends PersistentStatefulService<IHighlighterSt
if (this.streamingService.views.isRecording) {
// console.log('Recording is already running');
} else {
this.streamingService.toggleRecording();
this.streamingService.actions.toggleRecording();
}
streamInfo = {
id: 'fromStreamRecording' + uuid(),
Expand Down Expand Up @@ -862,7 +866,7 @@ export class HighlighterService extends PersistentStatefulService<IHighlighterSt
if (!aiRecordingInProgress) {
return;
}
this.streamingService.toggleRecording();
this.streamingService.actions.toggleRecording();

// Load potential replaybuffer clips
await this.loadClips(streamInfo.id);
Expand Down

0 comments on commit 064eb1d

Please sign in to comment.