JavaScript
A little bit of CSS customization
At this point, you have a complete working client using Vonage Video. This last step will demonstrate some basic CSS customization.
Open up your blank app.css file in your code editor and add the following code to it:
body, html { background-color: gray; height: 100%; } #videos { position: relative; width: 70%; height: 100%; float: left; } #subscriber { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin-left: 50px; z-index: 10; } #publisher { position: absolute; width: 360px; height: 240px; bottom: 10px; left: 10px; z-index: 100; border: 3px solid white; border-radius: 3px; } #textchat { position: relative; width: 20%; float: right; right: 0; height: 100%; background-color: #333; } #history { width: 100%; height: calc(100% - 40px); overflow: auto; } input#msgTxt { height: 40px; position: absolute; bottom: 0; width: 100%; } #history .mine { color: #00FF00; text-align: right; margin-right: 10px; } #history .theirs { color: #00FFFF; margin-left: 10px; }Once you've saved the CSS, reopen your index in two separate browser tabs again — you should now see the messages either being pinned to the right of left depending on who sent it. The page is set up to allow for video chat to happen alongside the text chat.
Basic text chat
Follow this tutorial to build basic text chat from scratch using the Vonage Video API. It is the quickest way to build a proof of concept for this functionality on the video platform.
Steps
1
Overview2
Before You Begin3
Configure a Vonage Video Application4
Creating the Project Folders and HTML Template5
Setting Up Authentication6
Connecting to the Session7
Sending a Signal8
Receiving a Signal9
Testing your Code in a Browser10
A little bit of CSS customization11
Conclusion