定制 vincenzogambino/laratok 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vincenzogambino/laratok

Composer 安装命令:

composer require vincenzogambino/laratok

包简介

Laravel package for OpenTok

README 文档

README

Laravel package for OpenTok.

Installation

Composer

composer require vincenzogambino/laratok

Open your config/app.php and add the following to the providers array:

'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    Illuminate\Auth\AuthServiceProvider::class,
    ...

    /**
     * Third Party Service Providers...
     */
    VincenzoGambino\LaraTok\LaraTokServiceProvider::class,

],

In the same config/app.php and add the following to the aliases array:

'aliases' => [

        'App' => Illuminate\Support\Facades\App::class,
        'Artisan' => Illuminate\Support\Facades\Artisan::class,
        ...
        'LaraTok' => VincenzoGambino\LaraTok\Facade\LaraTokFacade::class,
        
    ],

Run the command below to publish the package config file config/laratok.php:

php artisan vendor:publish

Create the database:

php artisan migrate

Set configuration on config/laratok.php:

Minimum configuration:

  • api_key
  • api_secret

You must have a tokbox account in order to have the parameteres above.

Admin Pages:

  • /laratok

From this page you can see existing tokens grouped by sessions.

Example Pages:

  • /laratok/examples

Pages showing example session and token. If example session and token does not exist it can be generated from there.

  • /laratok/examples/simple

Simple video chat example

  • /laratok/examples/signaling

Example page with videochat and messaging.

Usage:

Generate Session and persist it in the database:

$latarok = new Laratok();
$laratok->generateSession();

Generate Token and persist it in the database:

$latarok = new Laratok();
$laratok->generateToken();

Usage:

$laratok = new LaraTok();
$session_id = $laratok->generateSession();
$token_id = $laratok->generateToken($session_id);

return view('YOUR_VIEW', compact('session_id', 'token_id'));

OpenTok documentation:

https://tokbox.com/developer/

统计信息

  • 总下载量: 70
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 3
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固