The local stream with audio and video needs to be initiated and published into the Room for other participants to see and hear you. Enx.publish() method is used to publish a local stream to the connected Room. After the local stream is published to the Room, all participants are notified with an callback named  streamAdded.

Method: Enx.publish()


  • streamPublished – To the publisher that the stream has been published
  • eventError – To the publisher to notify that publishing has failed
  • streamAdded – To all participants announcing new stream in room
	Enx.publish();	// Publish Stream

	// To publisher - Stream has been published 

eventError : event=>{
	// To publisher - Failed to publish

	// To others - New stream is added