0.0.3 • Published 4 years ago

video-gateway-player v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

video-gateway-player

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save video-gateway-player

Usage

import React, { useState } from 'react' import VideoGatewayPlayer from 'video-gateway-player' import 'video-gateway-player/dist/index.css'

const oniceconnectionstatechange = (state) => { console.log("onICEConnectionStateChange to=>", state) }

const App = () => { const suuid, setSuuid = useState("demo1") return <> <VideoGatewayPlayer suuid={suuid} wsUrl={"ws://localhost:8085/ws"} oniceconnectionstatechange={oniceconnectionstatechange} /> <button onClick={() => setSuuid(suuid == "demo2" ? 'demo1' : "demo2")} >CHANGE </> }

export default App

## License

MIT © [dark10000](https://github.com/dark10000)
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago