subscriberView Too slow or caught React-Native-opentok

Asked

Viewed 89 times

1

I am using callstakio’s React-Native-opentok, when using only Subscriber it works normal, but when used Subscriber+Publisher Subscriber does not work properly.

render() {

    return (
        <View>

           <SubscriberView
              apiKey={OPENTOK_API_KEY}
              sessionId={SESSION_ID}
              token={PUBLISHER_TOKEN}
              style={{ width: x, height: y-200}}
          />

          <PublisherView
              apiKey={OPENTOK_API_KEY}
              sessionId={SESSION_ID}
              token={PUBLISHER_TOKEN}
              style={{ width: x, height: 200}}
          />
        </View>

    );
}

}
  • You have a } the most... is to close the class? Any error in the console?

  • That } left over is what closes the class. The problem is that Subscriber hangs or gets very slow after a few seconds of use

  • We need to see more of the code... what you put says little, we don’t even know where the x, y etc....

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.