library webrtc-token
This package generates the token used to authenticate your browsers to make calls using Voxbone's WebRTC solution.
voxbone/webrtc-token
This package generates the token used to authenticate your browsers to make calls using Voxbone's WebRTC solution.
- Thursday, September 3, 2015
- by sachanacar
- Repository
- 1 Watchers
- 0 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Voxbone WebRTC Token Generator
Usage
-
Add your credentials to the token.php file, (*1)
$username = 'your_username'; // Voxbone account name
$secret = 'your_secret'; // Voxbone webrtc password
-
Create an HTML file and import the token.php dependency, (*2)
<?php
require '../token.php';
?>
-
Import the token JSON object to the HTML file, (*3)
<?php
require 'token.php';
$data = $_get["output"];
?>
-
Pass that response to the init() function, (*4)
voxbone.WebRTC.init("<?php echo $data ?>");