codenidus / video-conference
Video Conference laravel/vue package
1.0.12
2025-03-20 17:26 UTC
Requires
- php: ^7.0|^8.0
- laravel/framework: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0
README
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.