codenidus/video-conference 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

codenidus/video-conference

最新稳定版本:1.0.12

Composer 安装命令:

composer require codenidus/video-conference

包简介

Video Conference laravel/vue package

README 文档

README

Latest Version on Packagist Total Downloads

CodeNidus video conference laravel/vue package

Installation

Via Composer

composer require codenidus/video-conference

Install Laravel package

php artisan videoconference:install

Install NPM packages

npm install cnidus-videoconference-vue

Usage

Set laravel project .env variables

# WEBRTC CONFIGS  
MIX_WEBRTC_TOKEN_URL="/api/videoconference/userToken"  
MIX_WEBRTC_THEME="Default"

VIDEOCONFERENCE_APP_ID="Project id"
VIDEOCONFERENCE_APP_SECRET="App Secret Token"

Add vue loader to webpack

Editing the webpack.mix.js config file and add this lines for load vue and mp3 files

 mix.webpackConfig({
  module: {
    rules: [
      {
        test: /\.mp3$/,
        use: [
          {
            loader: 'file-loader'
          }
        ],
      },
    ],
  },
});

mix.js('resources/js/app.js', 'public/js').vue()

Modify in vue project

Editing the app.js file and add this lines for provide webrtc to project children components

import { VideoConferenceCreator } from "cnidus-videoconference-vue"

const videoconference = VideoConferenceCreator()

app.use(videoconference)

Add webrtc vue components in project

<VCRooms />

<VCRoomJoin room-id="" />

Store user login token in local storage on specific key name

localStorage.setItem('cnidus.videoconference.laravel.token', 'user-token')

Demo

https://www.codenidus.com/projects/video-meeting

Change log

Please see the changelog for more information on what has changed recently.

Security

If you discover any security related issues, please email codenidus@gmail.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-23