Media
This topic compares how OpenTok and Dyte handle media publishing and subscription behavior.
Publishing​
OpenTok
publisher = OT.initPublisher('replacementElementId');
session.publish(publisher, function (error) {
  if (error) {
    console.log(error);
  } else {
    console.log('Publishing a stream.');
  }
});
For more information, see Publishing a stream.
Dyte
DyteClient.init({
  authToken: '$TOKEN',
  defaults: {
    audio: true,
    video: true,
  },
});