The HTML user interface for audio only calls
First, let's look at how the HTML-based web page will need to be modified. As before, we start with a standard HTML5 web page that includes a DOCTYPE
definition, a document head, and a document body.
<!DOCTYPE html> <html> <head> … </head> <body> … </body> </html>
And again, the first element inside the document head is a pair of <script>
tags that include the webrtc_polyfill.js
code inline.
This is followed by the code that defines the basic_audio_call.js
browser side logic, included inline within a pair of <script></script>
tags. This code will only require minor modifications to the one we developed in the previous chapter, and we'll discuss all this in more detail.
Then, the simple CSS-based styles are defined within a pair of <style></style>
tags, as before.
And finally, the HTML body content of the page is defined...