opentok-react-native
Version:
React Native components for OpenTok iOS and Android SDKs
111 lines (92 loc) • 2.01 kB
Markdown
Below, you will find the strucutre of the event objects broken down by event type.
You can find the structure of the object below:
```javascript
archive = {
archiveId: '',
name: '',
sessionId: '',
};
```
You can find the structure of the object below:
```javascript
audioNetworkStats = {
audioPacketsLost: '',
audioBytesReceived: '',
audioPacketsReceived: '',
};
```
You can find the structure of the object below:
```javascript
connection = {
connectionId: '',
creationTime: '',
data: '',
};
```
You can find the structure of the object below:
```javascript
error = {
code: '',
message: '',
};
```
You can find the structure of the object below:
```javascript
stream = {
streamId: '',
name: '',
connectionId: '', // This will be removed after v0.11.0 because it's exposed via the connection object
connection: {
connectionId: '',
creationTime: '',
data: '',
},
hasAudio: '',
hasVideo: '',
sessionId: '',
creationTime: '',
height: '',
width: '',
videoType: '', // camera or screen
};
```
```javascript
event = {
stream = {
streamId: '',
name: '',
connectionId: '', // This will be removed after v0.11.0 because it's exposed via the connection object
connection: {
connectionId: '',
creationTime: '',
data: '',
},
hasAudio: '',
hasVideo: '',
sessionId: '',
creationTime: '',
height: '',
width: '',
videoType: '', // camera or screen
},
oldValue: '',
newValue: '',
changedProperty: '',
};
```
You can find the structure of the object below:
```javascript
videoNetworkStats = {
videoPacketsLost: '',
videoBytesReceived: '',
videoPacketsReceived: '',
};
```