UNPKG

opentok-react-native

Version:

React Native components for OpenTok iOS and Android SDKs

111 lines (92 loc) 2.01 kB
## Event Data Below, you will find the strucutre of the event objects broken down by event type. ### Archive Event You can find the structure of the object below: ```javascript archive = { archiveId: '', name: '', sessionId: '', }; ``` ### Audio Network Stats You can find the structure of the object below: ```javascript audioNetworkStats = { audioPacketsLost: '', audioBytesReceived: '', audioPacketsReceived: '', }; ``` ### Connection Event You can find the structure of the object below: ```javascript connection = { connectionId: '', creationTime: '', data: '', }; ``` ### Error Event You can find the structure of the object below: ```javascript error = { code: '', message: '', }; ``` ### Stream Event 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 }; ``` ### Stream Property Changed event ```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: '', }; ``` ### Video Network Stats You can find the structure of the object below: ```javascript videoNetworkStats = { videoPacketsLost: '', videoBytesReceived: '', videoPacketsReceived: '', }; ```