Publishing a stream

Once you have a Publisher object and a session the next step is to pass it to the session object.

Pass the publisher object into the [OTSession publish:error] method of an OTSession object to publish the stream to the session:

This code assumes that session is a Session object, and that the client has connected to the session. For more information, see Creating a Session.

The [OTPublisherDelegate publisher:streamCreated:] message is sent when the publisher starts streaming to the session.