Skip to content

Commit

Permalink
Merge pull request #60 from elizaOS/tcm-enable-space-recording
Browse files Browse the repository at this point in the history
enable space recording
  • Loading branch information
tcm390 authored Jan 23, 2025
2 parents d39c858 + 9651b67 commit 60b5c2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/spaces/core/Space.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface SpaceConfig {
description?: string;
languages?: string[];
debug?: boolean;
record: boolean;
}

/**
Expand Down Expand Up @@ -102,6 +103,7 @@ export class Space extends EventEmitter {
languages: config.languages,
cookie,
region,
record: config.record,
});
this.broadcastInfo = broadcast;

Expand Down
3 changes: 2 additions & 1 deletion src/spaces/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export async function createBroadcast(params: {
languages?: string[];
cookie: string;
region: string;
record: boolean;
}): Promise<BroadcastCreated> {
const headers = new Headers({
'X-Periscope-User-Agent': 'Twitter/m5',
Expand All @@ -154,7 +155,7 @@ export async function createBroadcast(params: {
description: params.description || '',
height: 1080,
is_360: false,
is_space_available_for_replay: false,
is_space_available_for_replay: params.record,
is_webrtc: true,
languages: params.languages ?? [],
region: params.region,
Expand Down

0 comments on commit 60b5c2e

Please sign in to comment.