Basic concepts
Before starting the development of Twyng, you have to understand some basic concepts. These concepts are the backbone of the Twyng JavaScript SDK and include:
Joining a room
Joining a room, as the name suggests, involves connecting to a virtual room. To join a room, a valid room name is required. The room name should be a string value. When a user joins a room, they become a participant of that room.
After joining a room, participants can publish their media, such as webcam, microphone, and screen, into the room. The participants of that particular room can also subscribe to the published media in the room.
Publishing to a room
Publishing to a room involves sharing your media, such as your webcam, microphone, and screen, with other participants in the room. When you publish your media, it becomes accessible to all other participants, allowing them to view and interact with your shared content in real-time.
Subscribing from a room
Subscribing from a room involves receiving and accessing the media published by other participants in the room. When you subscribe to a room, you can view and listen to the shared content, such as webcam feeds, microphone audio, and screen shares, from other participants.