opentok-react-native icon indicating copy to clipboard operation
opentok-react-native copied to clipboard

[bug-report] subscriber `connected` eventHandler is called with different arguments for android and iOS

Open willhoney7 opened this issue 4 years ago • 1 comments

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.

willhoney7 avatar Oct 10 '19 20:10 willhoney7

any status update regarding this?

pietgk avatar Sep 18 '23 15:09 pietgk