Skip to content

teravoz/webphone-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webphone-examples

This repository contains two examples using the Teravoz WebRTC library.

The source code can be found at examples/ path.

Examples

floating-phone

It implements the UI of a webphone that can be dragged around the window. This example stands for a dynamic and flexible webphone on your screen. It may be embedded in a CRM.

  • How to run ?

    • Open the examples/floating-phone/index.html file

    • Place your API-KEY (Teravoz API Documentation) on the embed script

    • Go to examples/floating-phone/assets/js/main.js line 69

    • Insert your peer credentials

    • Execute the following commands in the bash:

      npm install 
    
      npm run examples
    • Using Docker: Execute the following commands in the bash:
      docker build . -t webphone-examples
    
      docker run -d --net host webphone-examples

using-dialpad

It also implements the UI of a webphone using a dialpad. This example stands for a more complex way to build an UI using the WebRTC Teravoz Library.

  • How to run ?

    • Open the examples/using-dialpad/index.html file

    • Place your API-KEY (Teravoz API Documentation) on the embed script

    • Execute the following commands in the bash:

      npm install 
    
      npm run examples
    • Using Docker: Execute the following commands in the bash:
      docker build . -t webphone-examples
    
      docker run -d --net host webphone-examples

Important Notes

Those examples are only starting points to build your own UI using the WebRTC Teravoz Library, meaning that it should NOT be used in production environments.