@@ -53,7 +53,7 @@ export default class Director {
5353 * @returns {Promise<MillicastDirectorResponse> } Promise object which represents the result of getting the publishing connection path.
5454 * @example const response = await Director.getPublisher(token, streamName)
5555 * @example
56- * import { Publish, Director } from 'millicast- sdk-js '
56+ * import { Publish, Director } from '@ millicast/ sdk'
5757 *
5858 * //Define getPublisher as callback for Publish
5959 * const streamName = "My Millicast Stream Name"
@@ -98,7 +98,7 @@ export default class Director {
9898 * @returns {Promise<MillicastDirectorResponse> } Promise object which represents the result of getting the subscribe connection data.
9999 * @example const response = await Director.getSubscriber(streamName, streamAccountId)
100100 * @example
101- * import { View, Director } from 'millicast- sdk-js '
101+ * import { View, Director } from '@ millicast/ sdk'
102102 *
103103 * //Define getSubscriber as callback for Subscribe
104104 * const streamName = "My Millicast Stream Name"
@@ -110,10 +110,8 @@ export default class Director {
110110 * //Create a new instance
111111 * const millicastView = new View(streamName, tokenGenerator)
112112 *
113- * //Set new.track event handler.
114- * //Event is from RTCPeerConnection ontrack event which contains the peer stream.
115- * //More information here: {@link https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack }
116- * millicastView.on('newTrack', (event) => {
113+ * //Set track event handler to receive streams from Publisher.
114+ * millicastView.on('track', (event) => {
117115 * addStreamToYourVideoTag(event.streams[0])
118116 * })
119117 *
0 commit comments