![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@voxeet/react-widget
Advanced tools
npm i @voxeet/voxeet-web-sdk @voxeet/react-widget --save
yarn add @voxeet/voxeet-web-sdk @voxet/react-widget
A redux reducer needs to be added to your store.
import { reducer as voxeetReducer } from '@voxeet/react-widget';
const reducers = combineReducers({
voxeet: voxeetReducer
});
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import thunkMidleware from 'redux-thunk'
import { combineReducers, createStore, applyMiddleware } from 'redux'
import { Widget, reducer as voxeetReducer } from '@voxeet/react-widget'
const reducers = combineReducers({
voxeet: voxeetReducer
});
const configureStore = () => createStore(
reducers,
applyMiddleware(thunkMidleware)
)
const settings = {
consumerKey: 'consumerKey',
consumerSecret: 'consumerSecret',
conferenceAlias: 'Sample2'
}
ReactDOM.render(
<Provider store={configureStore()}>
<Widget
consumerKey={settings.consumerKey}
consumerSecret={settings.consumerSecret}
conferenceAlias={settings.conferenceAlias}
/>
</Provider>,
document.getElementById('app')
)
where consumerKey
and consumerSecret
are your credentials and conferenceAlias
the conference you want to join.
Name | Type | Default | Description |
---|---|---|---|
sdk | Function | VoxeetSDK if you want to use external Voxeet SDK | |
consumerKey | String | The consumer key | |
consumerSecret | String | The consumer secret | |
conferenceAlias | String | The conference you whant to join | |
forceFullscreen | Boolean | false | Forces the widget to go fullscreen |
userInfo | Object | { name: 'Guest ' + Math.floor((Math.random() * 100) + 1), externalId: '', avatarUrl: '' } | User informations for voxeet sdk |
constraints | Object | { audio: true, video: false } | The webrtc constraints for the sdk |
sidebarButtons | React Component | ControlsButtons - All buttons | A react component to customize the sidebar buttons |
For more documentation on userInfo and constraints you can look at Voxeet Sdk
The default control buttons component is below, you can customize it for you needs. Just replace
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import {
Buttons: {
ToggleMicrophoneButton,
ToggleRecordingButton,
ToggleScreenShareButton,
ToggleVideoButton,
ToggleSettingsButton,
ToggleModeButton
}
} from '@voxeet/react-widget'
class ControlsButtons extends Component {
constructor(props) {
super(props)
}
render() {
const { isMuted, isRecording, videoEnabled, displaySettingsPanel, screenShareEnabled, mode,
toggleMicrophone, toggleRecording, toggleVideo, toggleScreenShare,
toggleSettings, toggleMode } = this.props
return (
<ul>
<ToggleMicrophoneButton
isMuted={isMuted}
toggle={toggleMicrophone}
/>
<ToggleRecordingButton
isRecording={isRecording}
toggle={toggleRecording}
/>
<ToggleScreenShareButton
screenShareEnabled={screenShareEnabled}
toggle={toggleScreenShare}
/>
<ToggleVideoButton
videoEnabled={videoEnabled}
toggle={toggleVideo}
/>
<ToggleSettingsButton
displaySettingsPanel={displaySettingsPanel}
toggle={toggleSettings}
/>
<ToggleModeButton
mode={mode}
toggleMode={toggleMode}
/>
</ul>
)
}
}
ControlsButtons.propTypes = {
isMuted: PropTypes.bool.isRequired,
videoEnabled: PropTypes.bool.isRequired,
displaySettingsPanel: PropTypes.bool.isRequired,
isRecording: PropTypes.bool.isRequired,
toggleMicrophone: PropTypes.func.isRequired,
toggleRecording: PropTypes.func.isRequired,
toggleVideo: PropTypes.func.isRequired,
toggleScreenShare: PropTypes.func.isRequired,
toggleSettings: PropTypes.func.isRequired,
toggleMode: PropTypes.func.isRequired,
};
export default ControlsButtons
This repository provides you an React component for using Voxeet features.
npm install
npm start
andnpm start
http://localhost:8080
with your browser (Chrome or Firefox)(Generates the module and assets (all minified) into the ./dist
folder)
npm run build
FAQs
Voxeet React Widget =====================
The npm package @voxeet/react-widget receives a total of 1 weekly downloads. As such, @voxeet/react-widget popularity was classified as not popular.
We found that @voxeet/react-widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.