@@ -2,25 +2,29 @@ import type { VideoCodec } from '../..';
2
2
3
3
// Payload definitions taken from https://github.com/livekit/livekit/blob/master/pkg/sfu/downtrack.go#L104
4
4
5
- export const VP8KeyFrame8x8 = new Uint8Array ( [
5
+ export const VP8KeyFrame8x8 : Uint8Array = new Uint8Array ( [
6
6
0x10 , 0x02 , 0x00 , 0x9d , 0x01 , 0x2a , 0x08 , 0x00 , 0x08 , 0x00 , 0x00 , 0x47 , 0x08 , 0x85 , 0x85 , 0x88 ,
7
7
0x85 , 0x84 , 0x88 , 0x02 , 0x02 , 0x00 , 0x0c , 0x0d , 0x60 , 0x00 , 0xfe , 0xff , 0xab , 0x50 , 0x80 ,
8
8
] ) ;
9
9
10
- export const H264KeyFrame2x2SPS = new Uint8Array ( [
10
+ export const H264KeyFrame2x2SPS : Uint8Array = new Uint8Array ( [
11
11
0x67 , 0x42 , 0xc0 , 0x1f , 0x0f , 0xd9 , 0x1f , 0x88 , 0x88 , 0x84 , 0x00 , 0x00 , 0x03 , 0x00 , 0x04 , 0x00 ,
12
12
0x00 , 0x03 , 0x00 , 0xc8 , 0x3c , 0x60 , 0xc9 , 0x20 ,
13
13
] ) ;
14
14
15
- export const H264KeyFrame2x2PPS = new Uint8Array ( [ 0x68 , 0x87 , 0xcb , 0x83 , 0xcb , 0x20 ] ) ;
15
+ export const H264KeyFrame2x2PPS : Uint8Array = new Uint8Array ( [ 0x68 , 0x87 , 0xcb , 0x83 , 0xcb , 0x20 ] ) ;
16
16
17
- export const H264KeyFrame2x2IDR = new Uint8Array ( [
17
+ export const H264KeyFrame2x2IDR : Uint8Array = new Uint8Array ( [
18
18
0x65 , 0x88 , 0x84 , 0x0a , 0xf2 , 0x62 , 0x80 , 0x00 , 0xa7 , 0xbe ,
19
19
] ) ;
20
20
21
- export const H264KeyFrame2x2 = [ H264KeyFrame2x2SPS , H264KeyFrame2x2PPS , H264KeyFrame2x2IDR ] ;
21
+ export const H264KeyFrame2x2 : Uint8Array [ ] = [
22
+ H264KeyFrame2x2SPS ,
23
+ H264KeyFrame2x2PPS ,
24
+ H264KeyFrame2x2IDR ,
25
+ ] ;
22
26
23
- export const OpusSilenceFrame = new Uint8Array ( [
27
+ export const OpusSilenceFrame : Uint8Array = new Uint8Array ( [
24
28
0xf8 , 0xff , 0xfe , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
25
29
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
26
30
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
0 commit comments