video-gateway-player

Made with create-react-library

Usage no npm install needed!

<script type="module">
  import videoGatewayPlayer from 'https://cdn.skypack.dev/video-gateway-player';
</script>

README

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)