Skip to content

Commit

Permalink
Provide connection source address hint to advise udp binding when str…
Browse files Browse the repository at this point in the history
…eaming video (#1022)
  • Loading branch information
koush authored Mar 9, 2024
1 parent 6dbba2f commit 791c361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/camera/RTPStreamManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ export type SnapshotRequest = {
*/
export type PrepareStreamRequest = {
sessionID: StreamSessionIdentifier,
sourceAddress: string,
targetAddress: string,
addressVersion: "ipv4" | "ipv6",
audio: Source,
Expand Down Expand Up @@ -1142,6 +1143,7 @@ export class RTPStreamManagement {

const prepareRequest: PrepareStreamRequest = {
sessionID: sessionIdentifier,
sourceAddress: connection.localAddress,
targetAddress: controllerAddress,
addressVersion: addressVersion === IPAddressVersion.IPV6? "ipv6": "ipv4",

Expand Down

0 comments on commit 791c361

Please sign in to comment.