All Projects â†’ this-fifo â†’ jutsu

this-fifo / jutsu

Licence: other
A jitsi meet component wrapper and custom hook moulded with react's chakra 💠

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to jutsu

Docker Jitsi Meet
Jitsi Meet on Docker
Stars: ✭ 2,364 (+1497.3%)
Mutual labels:  video-conferencing, jitsi, jitsi-meet
Jitsi Meet
Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
Stars: ✭ 17,247 (+11553.38%)
Mutual labels:  video-conferencing, jitsi, jitsi-meet
jitsi-box
A Raspberry Pi based box to automate holding hybrid conferences with Jitsi
Stars: ✭ 15 (-89.86%)
Mutual labels:  conference, jitsi, jitsi-meet
random-redirect
Page that redirects to a random page that offers the service you are looking for
Stars: ✭ 54 (-63.51%)
Mutual labels:  jitsi, jitsi-meet
awesome-jitsi
A curated list of wonderful resource links for Jitsi
Stars: ✭ 44 (-70.27%)
Mutual labels:  jitsi, jitsi-meet
iorestoacasa.work
Frontend of the video calling platform iorestoacasa.work
Stars: ✭ 36 (-75.68%)
Mutual labels:  jitsi, jitsi-meet
app
Platform for virtual meetups and virtual networking
Stars: ✭ 57 (-61.49%)
Mutual labels:  video-conferencing, jitsi
emrah-buster-templates
The templates of the emrah-buster installer.
Stars: ✭ 57 (-61.49%)
Mutual labels:  video-conferencing, jitsi
terraform aws jitsi meet
Deploy Jitsi Meet to AWS with Terraform
Stars: ✭ 19 (-87.16%)
Mutual labels:  jitsi, jitsi-meet
mirotalk
🚀 WebRTC - P2P - Simple, Secure, Fast Real-Time Video Conferences Up to 4k and 60fps, compatible with all browsers and platforms.
Stars: ✭ 1,593 (+976.35%)
Mutual labels:  conference, video-conferencing
jitsi-scalable-helm
Scalable jitsi helm chart
Stars: ✭ 28 (-81.08%)
Mutual labels:  video-conferencing, jitsi
sleepytimeconference
The conference that comes together while you sleep.
Stars: ✭ 17 (-88.51%)
Mutual labels:  conference, video-conferencing
jitsi-admin
Organize and fully controll your jitsi meet meetings. Make your meeting secure and be sure that only you and your fellows can join your meeting.
Stars: ✭ 76 (-48.65%)
Mutual labels:  jitsi, jitsi-meet
Meeteasier
MeetEasier is a web application that visualizes meeting room availability. It works using Exchange Web Services (EWS) with Exchange room lists in Office 365.
Stars: ✭ 235 (+58.78%)
Mutual labels:  conference
ToxBlinkenwall
ToxBlinkenwall - VideoConferencing with Tox
Stars: ✭ 16 (-89.19%)
Mutual labels:  conference
Machine Learning Resources
A curated list of awesome machine learning frameworks, libraries, courses, books and many more.
Stars: ✭ 226 (+52.7%)
Mutual labels:  conference
Iosched Ios
The Google I/O iOS app
Stars: ✭ 227 (+53.38%)
Mutual labels:  conference
Advances-in-Label-Noise-Learning
A curated (most recent) list of resources for Learning with Noisy Labels
Stars: ✭ 360 (+143.24%)
Mutual labels:  conference
Tech-Conferences
Overview of upcoming and past tech conferences
Stars: ✭ 42 (-71.62%)
Mutual labels:  conference
Nips2016
A list of resources for all invited talks, tutorials, workshops and presentations at NIPS 2016
Stars: ✭ 223 (+50.68%)
Mutual labels:  conference

<Jutsu />

A jitsi meet component wrapper and custom hook moulded with react's chakra 💠

View live demo

NPM

Install

yarn add react-jutsu

Add the Jitsi Meet API js file to the html body

<body>
  <script src='https://meet.jit.si/external_api.js'></script>
</body>

You can choose to load the script another way, the hook will return an error until the jitsi API is available in window scope.

Two options

You can use the provided component for simple scenarios or the hook for access to the jitsi meet api

import { Jutsu } from 'react-jutsu' // Component
import { useJitsi } from 'react-jutsu' // Custom hook

Sample Usage (Hook)

import React, { useEffect } from 'react'
import { useJitsi } from 'react-jutsu'

const App = () => {
  const jitsiConfig = {
    roomName: 'konoha',
    displayName: 'Naruto Uzumaki',
    password: 'dattebayo',
    subject: 'fan',
    parentNode: 'jitsi-container',
  };
  const { loading, error, jitsi } = useJitsi(jitsiConfig);

  return (
    <div>
      {error && <p>{error}</p>}
      <div id={jitsiConfig.parentNode} />
    </div>
  );
}

Sample Usage (Component)

import React, { useState } from 'react'

import { Jutsu } from 'react-jutsu'

const App = () => {
  const [room, setRoom] = useState('')
  const [name, setName] = useState('')
  const [call, setCall] = useState(false)
  const [password, setPassword] = useState('')

  const handleClick = event => {
    event.preventDefault()
    if (room && name) setCall(true)
  }

  return call ? (
    <Jutsu
      roomName={room}
      displayName={name}
      password={password}
      onMeetingEnd={() => console.log('Meeting has ended')}
      loadingComponent={<p>loading ...</p>}
      errorComponent={<p>Oops, something went wrong</p>} />
  ) : (
    <form>
      <input id='room' type='text' placeholder='Room' value={room} onChange={(e) => setRoom(e.target.value)} />
      <input id='name' type='text' placeholder='Name' value={name} onChange={(e) => setName(e.target.value)} />
      <input id='password' type='text' placeholder='Password (optional)' value={password} onChange={(e) => setPassword(e.target.value)} />
      <button onClick={handleClick} type='submit'>
        Start / Join
      </button>
    </form>
  )
}

export default App

Supported Configuration

Check the Jitsi Meet API docs for full configuration and how to use api commands when using the useJitsi hook

Room Name

The meeting room name

This prop is required to start a meeting

Display Name

The participant's displayed name

This prop is optional

Password

The meeting room password

This prop is optional

onMeetingEnd

Callback function executed after readyToClose event is fired

This prop is optional

Subject

The meeting subject (what is displayed at the top)

This prop is optional

<Jutsu
  subject='fan'
  roomName='naruto'
  password='dattebayo'
  displayName='uzumaki'
  onMeetingEnd={() => console.log('Meeting has ended')}
/>

Domain

<Jutsu domain='my-custom-domain.com'>

Your Jitsi domain to use, the default value is meet.jit.si

Loading Component

<Jutsu loadingComponent={<ProgressBar />}>

An optional loading component, the default value is <p>Loading ...</p>

Error Component

<Jutsu errorComponent={<p>Oops, something went wrong...</p>}>

An optional error component, the default value is a <p> containing the error.

Styles

Internally Jutsu is constructed inside 2 containers, you can add custom styles for each by specifying containerStyles and jitsiContainerstyles

The default values set as

<div
  style={{...{
    width: '800px',
    height: '400px'
  }, ...containerStyles}}
>
  <div
    style={{...{
      display: loading ? 'none' : 'block', // <- used for loadingComponent logic
      width: '100%',
      height: '100%'
    }, ...jitsiContainerStyles}}
  />
</div>

An example override could be

<Jutsu containerStyles={{ width: '1200px', height: '800px' }}>

configOverwrite

Configuration object to overwrite.

This prop is optional More details about possible key/values here

interfaceConfigOverwrite

Interface configuration object to overwrite.

This prop is optional More details about possible key/values here

onError

Callback function to be called with an error as the only parameter if any.

This prop is optional

onJitsi

Callback function to be called with the jitsi API client when instantiated.

This prop is optional

any other prop

Any other prop passed to the component will be passed to jitsi API constructor as part of the options parameter.

For instance: jwt, devices, userInfo

License

MIT © this-fifo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].