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

OT_TIMEOUT Session cannot publish in a reasonable amount of time on iPad 13.1.3

Open maximegauthierportima opened this issue 4 years ago • 2 comments

Hi,

We are facing an issue with iPad with iPadOS 13.1.3. When the client try to publish his stream we got an error OT_TIMEOUT: Session.publish::Session.publish:: Could not publish in a reasonable amount of time. It works fine with any other device: Android and iOS mobile, desktop and tablet (even Surface!!!!)

We use the packages @opentok/client: 2.17.2 and opentok-react: 0.10.0

And the code is like in your documentation

<OTSession apiKey={ApiKey} sessionId={SessionId} token={Token}>
<OTStreams>
               <OTSubscriber
                 properties={subscriberOptions}
                 onSubscribe={this.onSubscribe}
                 onError={this.onSubscribeError}
                 eventHandlers={this.subscriberEventHandlers}
               />
             </OTStreams>
<OTPublisher
                     ref={this.otPublisher}
                     properties={{
                       publishAudio: this.state.publisherOptions.publishAudio,
                       publishVideo: this.state.publisherOptions.publishVideo,
                       width: "100px",
                       height: "150px",
                       showControls: false,
                       mirror: false,
                       usePreviousDeviceSelection: true,
                       style: {
                         buttonDisplayMode: "off",
                         nameDisplayMode: "on",
                       },
                     }}
                     onPublish={this.onPublish}
                     onError={this.onPublishError}
                     eventHandlers={this.publisherEventHandlers}
                   />
</OTSession>

maximegauthierportima avatar May 14 '20 15:05 maximegauthierportima

@maximegauthierportima seems like a network error to me. Is it reproducible under different networks? Could you try different WiFi/Cellular?

enricop89 avatar Jun 01 '20 07:06 enricop89

Hi @enricop89 yeah, we tried multiple times with different Wifi/Cellular. We managed to reproduce it some times. But we only managed to reproduced it on iPad, other devices never had these issue. So I'm not sure if it's related to opentok or management of network by the iPad.

maximegauthierportima avatar Jun 16 '20 09:06 maximegauthierportima