| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This JavaScript Sample app is built using our JavaScript SDK, this will help you add a live stream layout to your website which can be customized to build chat exactly how you want, and unbelievably quickly. It enables achieving a beautiful chat app interface for all use-cases like live chat, online consultation & tutoring, team collaboration, messaging, customer support and gaming chat.
Follow the below steps to add the Channelize live stream layout to your website.
Add the Channelize live stream div in the body tag of your website.
<body>
<div id="ch_live_stream"></div>
</body>Import the liveStream.Channelize.js file after body tag in your website.
<script src="https://cdn.channelize.io/apps/live-stream/2.1.0/liveStream.Channelize.js"></script>Import the Channelize JS-SDK after body tag in your website.
<script src="https://cdn.channelize.io/sdk/4.3.0/browser.js"></script>Create Channelize.io object and call the load function which will require your public key as an argument.
<script>
const channelizeLiveStream = new ChannelizeLiveStream('PUBLIC_KEY');
channelizeLiveStream.load();
</script>Pre-requisites: Have Node v8.x+ installed.
<script src="./dist/liveStream.Channelize.js"></script>sudo npm installsudo npm run buildnpm start |-- dist
|-- liveStream.Channelize.js - Channelize Live Stream Bundle file
|-- node_modules
|-- ... - (node packages)
|-- src
|-- js
|-- components
|-- conversation.js - conversation screen class
|-- login.js - login class
|-- threads.js - threads screen class
|-- adapter.js - Channelize JS SDK functions
|-- constants.js - const variables
|-- utility.js - utility functions
|-- liveStream.js - live stream main functions
|-- scss
|-- main.scss - main style class
|-- variables.scss - css variables
|-- index.html - sample file
|-- package.json - npm package
|-- README.md - description file
|-- server.js - server file
|-- webpack.config.js - webpack setting
| Back | FazBrowse Home | New Git URL |