Skip to content

Commit

Permalink
event log save
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Nov 25, 2024
1 parent 67fde51 commit 4bf9218
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions scripts/peer-connection-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ async function getPeerConnectionStats(id, pc, now, raw = false, verbose = false)
for (const s of stats.values()) {
if (raw) {
if (!values.raw) {
values.raw = [encodings]
values.raw = { encodings, stats: [] }
}
values.raw.push(s)
values.raw.stats.push(s)
}
if (s.type === 'codec') {
values.codec = s.mimeType.split('/')[1].toLowerCase()
Expand Down
19 changes: 8 additions & 11 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,15 @@ export class Session extends EventEmitter {
'--enable-features=VaapiVideoDecoder,VaapiVideoEncoder,VaapiVideoDecodeLinuxGL,ElementCapture',
]

// 'WebRTC-VP8ConferenceTemporalLayers/2',
// 'AutomaticTabDiscarding/Disabled',
// 'WebRTC-Vp9DependencyDescriptor/Enabled',
// 'WebRTC-DependencyDescriptorAdvertised/Enabled',
let fieldTrials = this.chromiumFieldTrials || ''
/* if (this.audioRedForOpus) {
fieldTrials.push('WebRTC-Audio-Red-For-Opus/Enabled')
} */

if (this.enableBrowserLogging && this.pageLogPath) {
const eventLogPath = path.resolve(path.dirname(this.pageLogPath), `event-logging-${this.id}`)
fs.mkdirSync(eventLogPath, { recursive: true })
args.push('--enable-logging', '--vmodule=*/webrtc/*=1', `--webrtc-event-logging=${eventLogPath}`)
fieldTrials = 'WebRTC-RtcEventLogNewFormat/Disabled/' + fieldTrials
}

if (this.maxVideoDecoders !== -1 && this.id >= this.maxVideoDecodersAt) {
fieldTrials = `WebRTC-MaxVideoDecoders/${this.maxVideoDecoders}/` + fieldTrials
}
Expand Down Expand Up @@ -617,10 +618,6 @@ export class Session extends EventEmitter {
)
}

if (this.enableBrowserLogging) {
args.push('--enable-logging=stderr', '--vmodule=*/webrtc/*=1')
}

return args
}

Expand Down

0 comments on commit 4bf9218

Please sign in to comment.