opentok-react-native
opentok-react-native copied to clipboard
[bug-report] subscriber `connected` eventHandler is called with different arguments for android and iOS
Bug Report
Current behavior
The connected
eventHandler of the OTSubscriber component is called with different arguments based on the platform.
Steps to reproduce
Add a connected
eventHandler to the OTSubscriber component and look at the event arguments on android and on iOS.
Example Project I'm hoping this isn't necessary for this specific case. If necessary, I can provide one.
What is the current bug behavior? Android and iOS have different event result shapes.
What is the expected correct behavior? Android and iOS should have the same event result shape.
Relevant logs and/or screenshots
<OTSubscriber
eventHandlers={{
connected(event) {
console.log(event);
// iOS result
{
connection: { ... },
connectionId: "XXXXX",
creationTime: "2019-10-10 18:49:31",
hasAudio: false,
hasVideo: true,
height: 480,
name: "",
sessionId: "XXXXX",
streamId: "XXXXX",
videoType: "camera",
width: 640
}
// android result
{
stream: {
connection: { ... },
connectionId: "XXXXX",
creationTime: "Thu Oct 10 12:49:31 MDT 2019",
hasAudio: false,
hasVideo: true,
height: 480,
name: "",
sessionId: "XXXXX",
streamId: "XXXXX",
videoType: "camera",
width: 640
}
}
}
/>
Other notes It's entirely possible the other events have the same issue. We're only looking at the connected event in our application.
any status update regarding this?