1.0.2 • Published 4 years ago

react-quiph-audiortc v1.0.2

Weekly downloads
15
License
-
Repository
github
Last release
4 years ago

react-quiph-audiortc

Audio RTC component to enable webrtc audio calling inside qtalk web game/activity

NPM JavaScript Style Guide

Install

npm install --save react-quiph-audiortc

Usage

import React, { Component } from 'react'

import QAudioRTC from 'react-quiph-audiortc'

class App extends Component {
  render () {
    return (
       { this.state.interactionType === "WEB_SHARING" ?<QAudioRTC
              callsDatabase={callsDatabase}
              gameId={this.state.gameId}
              startGame={this.startGameonCall}
              endGame={this.endGameonCall}
              dbUrl={this.state.dbUrl}
              userId={this.state.userId}
            /> : null }
      <ActivityApp/>
    )
  }
}

License

© krunal-lia