Package Data | |
---|---|
Maintainer Username: | VincenzoGambino |
Maintainer Contact: | gambinovin@gmail.com (Vincenzo Gambino) |
Package Create Date: | 2016-11-09 |
Package Last Update: | 2016-11-15 |
Home Page: | |
Language: | HTML |
License: | MIT |
Last Refreshed: | 2024-11-18 03:05:31 |
Package Statistics | |
---|---|
Total Downloads: | 69 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 3 |
Total Open Issues: | 1 |
Laravel package for OpenTok.
composer require vincenzogambino/laratok
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
...
/**
* Third Party Service Providers...
*/
VincenzoGambino\LaraTok\LaraTokServiceProvider::class,
],
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
...
'LaraTok' => VincenzoGambino\LaraTok\Facade\LaraTokFacade::class,
],
php artisan vendor:publish
php artisan migrate
Minimum configuration:
You must have a tokbox account in order to have the parameteres above.
From this page you can see existing tokens grouped by sessions.
Pages showing example session and token. If example session and token does not exist it can be generated from there.
Simple video chat example
Example page with videochat and messaging.
$latarok = new Laratok();
$laratok->generateSession();
$latarok = new Laratok();
$laratok->generateToken();
$laratok = new LaraTok();
$session_id = $laratok->generateSession();
$token_id = $laratok->generateToken($session_id);
return view('YOUR_VIEW', compact('session_id', 'token_id'));
https://tokbox.com/developer/