Displaying or hiding the name in a video
When you publish a stream, you can specify a name to be displayed in the video (see this section).
When you create a Publisher, you can specify whether the name is displayed in the Publisher video, by setting the style.nameDisplayMode property of the options you pass into the OT.initPublisher() method:
The style.nameDisplayMode property can be set to one of three values:
"auto"— The name is displayed when the stream is first displayed and when the user mouses over the video (the default)."off"— The name is not displayed."on"— The name is displayed.
Once you have created the Publisher, you can change the name display mode, by calling the setStyle() method of the Publisher object. (See the documentation for the Publisher.setStyle() method.)
When you subscribe to a stream, you can specify whether the name is displayed in the Subscriber video, by setting the style.nameDisplayMode property of the options you pass into the Session.subscribe() method:
Once you have created the Subscriber, you can change the name display mode, by calling the setStyle() method of the Subscriber object. (See the documentation for the Subscriber.setStyle() method.)