opentok-react-native
Advanced tools
Comparing version 2.25.3 to 2.25.4
@@ -74,3 +74,3 @@ declare module "opentok-react-native" { | ||
} | ||
interface SubscriberAudioStatsEvent { | ||
@@ -134,31 +134,2 @@ audioBytesReceived: number, | ||
/** | ||
* Used to get capabilities of the client | ||
*/ | ||
getCapabilities(): Promise<{ | ||
canForceMute: boolean; | ||
canPublish: boolean; | ||
canSubscribe: boolean; | ||
}> | ||
/** | ||
* Mutes all streams in the session. | ||
*/ | ||
forceMuteAll(excludedStreamIds: string[]): Promise<> | ||
/** | ||
* Mutes a stream in the session. | ||
*/ | ||
forceMuteStream(streamId: string): Promise<> | ||
/** | ||
* Disables the force mute state for the session. | ||
*/ | ||
disableForceMute(): Promise<> | ||
/** | ||
* Used to report an issue | ||
*/ | ||
reportIssue(): Promise<string> | ||
/** | ||
* Event handlers passed into the native session instance. | ||
@@ -178,5 +149,5 @@ */ | ||
*/ | ||
proxyUrl?: string; | ||
proxyUrl?: string; | ||
/** | ||
/** | ||
* Android only - valid options are 'mediaOverlay' or 'onTop' | ||
@@ -199,3 +170,3 @@ */ | ||
* Deprecated and ignored. | ||
*/ | ||
@@ -208,3 +179,3 @@ isCamera2Capable?: boolean; | ||
ipWhitelist?: boolean; | ||
/** | ||
@@ -221,5 +192,5 @@ * Enable Stereo output | ||
customServers: { | ||
urls: string[]; | ||
username?: string; | ||
credential?: string; | ||
urls: string[]; | ||
username?: string; | ||
credential?: string; | ||
}[]; | ||
@@ -304,4 +275,33 @@ }; | ||
*/ | ||
export class OTSession extends React.Component<OTSessionProps> {} | ||
export class OTSession extends React.Component<OTSessionProps, unknown> { | ||
/** | ||
* Used to get capabilities of the client | ||
*/ | ||
getCapabilities: () => Promise<{ | ||
canForceMute: boolean; | ||
canPublish: boolean; | ||
canSubscribe: boolean; | ||
}> | ||
/** | ||
* Mutes all streams in the session. | ||
*/ | ||
forceMuteAll: (excludedStreamIds: string[]) => Promise<void> | ||
/** | ||
* Mutes a stream in the session. | ||
*/ | ||
forceMuteStream: (streamId: string) => Promise<void> | ||
/** | ||
* Disables the force mute state for the session. | ||
*/ | ||
disableForceMute: () => Promise<void> | ||
/** | ||
* Used to report an issue | ||
*/ | ||
reportIssue: () => Promise<string> | ||
} | ||
interface OTPublisherProps extends ViewProps { | ||
@@ -317,9 +317,2 @@ /** | ||
eventHandlers?: OTPublisherEventHandlers; | ||
/** | ||
* Gets the RTC stats report for the publisher. This is an asynchronous operation. | ||
* The OTPublisher object dispatches an rtcStatsReport event when RTC statistics for | ||
* the publisher are available. | ||
*/ | ||
getRtcStatsReport(): void; | ||
} | ||
@@ -412,6 +405,6 @@ | ||
/** | ||
* Sent when RTC stats reports are available for the publisher, | ||
* Sent when RTC stats reports are available for the publisher, | ||
* in response to calling the OTPublisher.getRtcStatsReport() method. | ||
*/ | ||
rtcStatsReport?: CallbackWithParam<PublisherRtcStatsReport[]>, any>; | ||
rtcStatsReport?: CallbackWithParam<PublisherRtcStatsReport[], any>; | ||
@@ -432,3 +425,10 @@ /** | ||
*/ | ||
export class OTPublisher extends React.Component<OTPublisherProps> {} | ||
export class OTPublisher extends React.Component<OTPublisherProps, unknown> { | ||
/** | ||
* Gets the RTC stats report for the publisher. This is an asynchronous operation. | ||
* The OTPublisher object dispatches an rtcStatsReport event when RTC statistics for | ||
* the publisher are available. | ||
*/ | ||
getRtcStatsReport?: () => void; | ||
} | ||
@@ -465,9 +465,2 @@ interface OTSubscriberProps extends ViewProps { | ||
subscribeToSelf?: boolean; | ||
/** | ||
* Gets the RTC stats report for the subscriber. This is an asynchronous operation. | ||
* The OTSubscriber object dispatches an rtcStatsReport event when RTC statistics for | ||
* the publisher are available. | ||
*/ | ||
getRtcStatsReport(): void; | ||
} | ||
@@ -519,6 +512,6 @@ | ||
/** | ||
* Sent when an RTC stats report is available for the subscriber, | ||
* Sent when an RTC stats report is available for the subscriber, | ||
* in response to calling the OTSubscriber.getRtcStatsReport() method. | ||
*/ | ||
rtcStatsReport?: CallbackWithParam<RtcStatsReport>, any>; | ||
rtcStatsReport?: CallbackWithParam<RtcStatsReport, any>; | ||
@@ -566,7 +559,14 @@ /** | ||
*/ | ||
export class OTSubscriberView extends React.Component<OTSubscriberViewProps> {} | ||
export class OTSubscriberView extends React.Component<OTSubscriberViewProps, unknown> {} | ||
/** | ||
* https://github.com/opentok/opentok-react-native/blob/master/docs/OTSubscriber.md | ||
*/ | ||
export class OTSubscriber extends React.Component<OTSubscriberProps> {} | ||
export class OTSubscriber extends React.Component<OTSubscriberProps, unknown> { | ||
/** | ||
* Gets the RTC stats report for the subscriber. This is an asynchronous operation. | ||
* The OTSubscriber object dispatches an rtcStatsReport event when RTC statistics for | ||
* the publisher are available. | ||
*/ | ||
getRtcStatsReport: () => void; | ||
} | ||
} |
@@ -0,1 +1,5 @@ | ||
# 2.25.4 (October 2023) | ||
- [Fix]: Fixes TypeScript definitions - issue #690. | ||
# 2.25.3 (September 2023) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "opentok-react-native", | ||
"version": "2.25.3", | ||
"version": "2.25.4", | ||
"description": "React Native components for OpenTok iOS and Android SDKs", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
1502807
1617