Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyoshiaki committed Jan 1, 2024
1 parent c0965cd commit 0660f08
Show file tree
Hide file tree
Showing 182 changed files with 3,990 additions and 5,533 deletions.
8 changes: 6 additions & 2 deletions doc/classes/AV1Obu.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@

### constructor

**new AV1Obu**()
**new AV1Obu**(): [`AV1Obu`](AV1Obu.md)

#### Returns

[`AV1Obu`](AV1Obu.md)

## Properties

Expand Down Expand Up @@ -78,7 +82,7 @@ ___

### deSerialize

`Static` **deSerialize**(`buf`): [`AV1Obu`](AV1Obu.md)
**deSerialize**(`buf`): [`AV1Obu`](AV1Obu.md)

#### Parameters

Expand Down
14 changes: 9 additions & 5 deletions doc/classes/AV1RtpPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@

### constructor

**new AV1RtpPayload**()
**new AV1RtpPayload**(): [`AV1RtpPayload`](AV1RtpPayload.md)

#### Returns

[`AV1RtpPayload`](AV1RtpPayload.md)

## Properties

Expand All @@ -45,7 +49,7 @@ ___

### obu\_or\_fragment

**obu\_or\_fragment**: { `data`: `Buffer` ; `isFragment`: `boolean` }[] = `[]`
**obu\_or\_fragment**: \{ `data`: `Buffer` ; `isFragment`: `boolean` }[] = `[]`

___

Expand Down Expand Up @@ -88,7 +92,7 @@ MUST be set to 1 if the first OBU element is an OBU fragment that is a continuat

### deSerialize

`Static` **deSerialize**(`buf`): [`AV1RtpPayload`](AV1RtpPayload.md)
**deSerialize**(`buf`): [`AV1RtpPayload`](AV1RtpPayload.md)

#### Parameters

Expand All @@ -104,7 +108,7 @@ ___

### getFrame

`Static` **getFrame**(`payloads`): `Buffer`
**getFrame**(`payloads`): `Buffer`

#### Parameters

Expand All @@ -120,7 +124,7 @@ ___

### isDetectedFinalPacketInSequence

`Static` **isDetectedFinalPacketInSequence**(`header`): `boolean`
**isDetectedFinalPacketInSequence**(`header`): `boolean`

#### Parameters

Expand Down
6 changes: 5 additions & 1 deletion doc/classes/BitStream.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@

### constructor

**new BitStream**(`uint8Array`)
**new BitStream**(`uint8Array`): [`BitStream`](BitStream.md)

#### Parameters

| Name | Type |
| :------ | :------ |
| `uint8Array` | `Buffer` |

#### Returns

[`BitStream`](BitStream.md)

## Properties

### uint8Array
Expand Down
6 changes: 5 additions & 1 deletion doc/classes/BitWriter.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@

### constructor

**new BitWriter**(`bitLength`)
**new BitWriter**(`bitLength`): [`BitWriter`](BitWriter.md)

#### Parameters

| Name | Type |
| :------ | :------ |
| `bitLength` | `number` |

#### Returns

[`BitWriter`](BitWriter.md)

## Properties

### value
Expand Down
6 changes: 5 additions & 1 deletion doc/classes/BitWriter2.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

### constructor

**new BitWriter2**(`bitLength`)
**new BitWriter2**(`bitLength`): [`BitWriter2`](BitWriter2.md)

各valueがオクテットを跨いではならない

Expand All @@ -35,6 +35,10 @@
| :------ | :------ | :------ |
| `bitLength` | `number` | Max 32bit |

#### Returns

[`BitWriter2`](BitWriter2.md)

## Properties

### offset
Expand Down
6 changes: 5 additions & 1 deletion doc/classes/BufferChain.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@

### constructor

**new BufferChain**(`size`)
**new BufferChain**(`size`): [`BufferChain`](BufferChain.md)

#### Parameters

| Name | Type |
| :------ | :------ |
| `size` | `number` |

#### Returns

[`BufferChain`](BufferChain.md)

## Properties

### buffer
Expand Down
8 changes: 6 additions & 2 deletions doc/classes/Candidate.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

### constructor

**new Candidate**(`foundation`, `component`, `transport`, `priority`, `host`, `port`, `type`, `relatedAddress?`, `relatedPort?`, `tcptype?`, `generation?`)
**new Candidate**(`foundation`, `component`, `transport`, `priority`, `host`, `port`, `type`, `relatedAddress?`, `relatedPort?`, `tcptype?`, `generation?`): [`Candidate`](Candidate.md)

#### Parameters

Expand All @@ -50,6 +50,10 @@
| `tcptype?` | `string` |
| `generation?` | `number` |

#### Returns

[`Candidate`](Candidate.md)

## Properties

### component
Expand Down Expand Up @@ -146,7 +150,7 @@ ___

### fromSdp

`Static` **fromSdp**(`sdp`): [`Candidate`](Candidate.md)
**fromSdp**(`sdp`): [`Candidate`](Candidate.md)

#### Parameters

Expand Down
155 changes: 155 additions & 0 deletions doc/classes/CandidatePair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
[werift](../README.md) / [Exports](../modules.md) / CandidatePair

# Class: CandidatePair

## Table of contents

### Constructors

- [constructor](CandidatePair.md#constructor)

### Properties

- [handle](CandidatePair.md#handle)
- [nominated](CandidatePair.md#nominated)
- [protocol](CandidatePair.md#protocol)
- [remoteCandidate](CandidatePair.md#remotecandidate)
- [remoteNominated](CandidatePair.md#remotenominated)

### Accessors

- [component](CandidatePair.md#component)
- [localCandidate](CandidatePair.md#localcandidate)
- [remoteAddr](CandidatePair.md#remoteaddr)
- [state](CandidatePair.md#state)

### Methods

- [toJSON](CandidatePair.md#tojson)
- [updateState](CandidatePair.md#updatestate)

## Constructors

### constructor

**new CandidatePair**(`protocol`, `remoteCandidate`): [`CandidatePair`](CandidatePair.md)

#### Parameters

| Name | Type |
| :------ | :------ |
| `protocol` | [`Protocol`](../interfaces/Protocol.md) |
| `remoteCandidate` | [`Candidate`](Candidate.md) |

#### Returns

[`CandidatePair`](CandidatePair.md)

## Properties

### handle

`Optional` **handle**: `Object`

#### Type declaration

| Name | Type |
| :------ | :------ |
| `cancel` | () => `void` |
| `done` | () => `boolean` |
| `promise` | `PCancelable`\<`any`\> |

___

### nominated

**nominated**: `boolean` = `false`

___

### protocol

**protocol**: [`Protocol`](../interfaces/Protocol.md)

___

### remoteCandidate

**remoteCandidate**: [`Candidate`](Candidate.md)

___

### remoteNominated

**remoteNominated**: `boolean` = `false`

## Accessors

### component

`get` **component**(): `number`

#### Returns

`number`

___

### localCandidate

`get` **localCandidate**(): [`Candidate`](Candidate.md)

#### Returns

[`Candidate`](Candidate.md)

___

### remoteAddr

`get` **remoteAddr**(): readonly [`string`, `number`]

#### Returns

readonly [`string`, `number`]

___

### state

`get` **state**(): [`CandidatePairState`](../enums/CandidatePairState.md)

#### Returns

[`CandidatePairState`](../enums/CandidatePairState.md)

## Methods

### toJSON

**toJSON**(): `Object`

#### Returns

`Object`

| Name | Type |
| :------ | :------ |
| `protocol` | `string` |
| `remoteAddr` | readonly [`string`, `number`] |

___

### updateState

**updateState**(`state`): `void`

#### Parameters

| Name | Type |
| :------ | :------ |
| `state` | [`CandidatePairState`](../enums/CandidatePairState.md) |

#### Returns

`void`
Loading

0 comments on commit 0660f08

Please sign in to comment.