mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
MediaAttributes.rtcpFb and MediaAttributes.rtcpFbTrrInt were changed to arrays.
This commit is contained in:
Vendored
+4
-4
@@ -147,16 +147,16 @@ export interface MediaAttributes extends SharedAttributes {
|
||||
address?: string;
|
||||
};
|
||||
// a=rtcp-fb:98 nack rpsi
|
||||
rtcpFb?: {
|
||||
rtcpFb?: Array<{
|
||||
payload: number;
|
||||
type: string;
|
||||
subtype?: string;
|
||||
};
|
||||
}>;
|
||||
// a=rtcp-fb:98 trr-int 100
|
||||
rtcpFbTrrInt?: {
|
||||
rtcpFbTrrInt?: Array<{
|
||||
payload: number;
|
||||
value: number;
|
||||
};
|
||||
}>;
|
||||
// a=fmtp
|
||||
fmtp: Array<{
|
||||
payload: number;
|
||||
|
||||
@@ -13,4 +13,6 @@ const codec: string = session.media[0].rtp[0].codec;
|
||||
session.media[0].rtp[0].codec = 'opus';
|
||||
const config: string = session.media[0].fmtp[0].config;
|
||||
session.media[0].fmtp[0].config = 'maxplaybackrate=48000;stereo=1;useinbandfec=1';
|
||||
session.media[0].rtcpFb = [{ payload: 96, type: 'ccm', subtype: 'fir' }, { payload: 98, type: 'nack', subtype: 'rpsi' }];
|
||||
session.media[0].rtcpFbTrrInt = [{ payload: 96, value: 100 }, { payload: 98, value: 100 }];
|
||||
const sdp: string = write(session);
|
||||
|
||||
Reference in New Issue
Block a user