Skip to content

Commit

Permalink
fix: 508 transport info may use active slot for slot id
Browse files Browse the repository at this point in the history
  • Loading branch information
Balte de Wit committed Feb 16, 2021
1 parent c0812da commit a3a5ce5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/asyncHandlers/transportInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export class TransportInfoChange implements IHandler {
videoFormat: msg.params['video format'] as VideoFormat,
loop: parseBool(msg.params['loop']),
}

if (msg.params['active slot'] && !res.slotId) {
// this is essentially off-spec but seems to be how BMD have implemented it
res.slotId = parseIdOrNone(msg.params['active slot'])
}

return res
}
}

0 comments on commit a3a5ce5

Please sign in to comment.