Skip to content

Commit

Permalink
feat: add x-sensor-transform attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
steabert committed Mar 12, 2021
1 parent f8a63c7 commit 0a7a9b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/utils/protocols/sdp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export interface VideoMedia extends MediaDescription {
readonly framerate?: number
// Transformation matrix
readonly transform?: number[][]
readonly 'x-sensor-transform'?: number[][]
// JPEG
readonly framesize?: [number, number]
}
Expand Down Expand Up @@ -285,6 +286,9 @@ const attributeParsers: any = {
transform: (value: string) => {
return value.split(';').map((row) => row.split(',').map(Number))
},
'x-sensor-transform': (value: string) => {
return value.split(';').map((row) => row.split(',').map(Number))
},
framesize: (value: string) => {
return value.split(' ')[1].split('-').map(Number)
},
Expand Down

0 comments on commit 0a7a9b3

Please sign in to comment.