mpatel
mpatel

Reputation: 486

Opentok [ v2.13 ] - Unable to publish on the session

I am using opentok library to perform video call. When I try to publish a publisher over a session with audioSource and videoSource both property set to null then I am not able to publish a publisher over a stream.

Getting below error.

Unable to publish, session timeout

  1. Error Reference

Upvotes: 2

Views: 727

Answers (1)

Manik
Manik

Reputation: 1515

TokBox Developer Evangelist here.

The reason that you're unable to publish successfully is because you're setting both the videoSource and the audioSource properties to null. This means that neither the video nor the audio tracks will be initialized.

For more information on initializing the publisher, please check out the docs for initPublisher.

Upvotes: 1

Related Questions