Skip to content

Commit

Permalink
remove hardware preference and add cc option
Browse files Browse the repository at this point in the history
  • Loading branch information
kota-yata committed Aug 29, 2024
1 parent 1793a2a commit fdc4bbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/moq/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const VIDEO_ENCODER_CONFIGS: { [key: string]: VideoEncoderConfig } = {
bitrate: 2_000_000,
framerate: 60,
latencyMode: 'realtime',
hardwareAcceleration: 'prefer-hardware'
hardwareAcceleration: 'no-preference'
},
'medium': {
codec: 'avc1.420028',
Expand All @@ -15,7 +15,7 @@ export const VIDEO_ENCODER_CONFIGS: { [key: string]: VideoEncoderConfig } = {
bitrate: 1_000_000,
framerate: 60,
latencyMode: 'realtime',
hardwareAcceleration: 'prefer-hardware'
hardwareAcceleration: 'no-preference'
},
'low': {
codec: 'avc1.42001e',
Expand All @@ -24,7 +24,7 @@ export const VIDEO_ENCODER_CONFIGS: { [key: string]: VideoEncoderConfig } = {
bitrate: 500_000,
framerate: 30,
latencyMode: 'realtime',
hardwareAcceleration: 'prefer-hardware'
hardwareAcceleration: 'no-preference'
},
};
export const AUDIO_ENCODER_DEFAULT_CONFIG: AudioEncoderConfig = {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/moq/moqt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class MOQT {
private inflightRequests: string[] = [];
public trackManager: TrackManager;
constructor(url: string) {
this.wt = new WebTransport(url);
this.wt = new WebTransport(url, { congestionControl: 'low-latency' });
this.trackManager = new TrackManager();
}
public async initControlStream() {
Expand Down

0 comments on commit fdc4bbd

Please sign in to comment.