https://github.com/ekaansharora/agora-cloud-player-backend
This is an example of a simple Node/Express server that can be use to invoke cloud player to inject videos into an Agora video channel.
https://github.com/ekaansharora/agora-cloud-player-backend
Last synced: about 2 months ago
JSON representation
This is an example of a simple Node/Express server that can be use to invoke cloud player to inject videos into an Agora video channel.
- Host: GitHub
- URL: https://github.com/ekaansharora/agora-cloud-player-backend
- Owner: EkaanshArora
- License: mit
- Created: 2022-01-14T13:26:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-14T13:27:17.000Z (over 3 years ago)
- Last Synced: 2025-02-03T14:47:23.289Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Agora Cloud Player Backend
This is an example of a simple Node/Express server that can be use to invoke cloud player to inject videos into an Agora video channel.[](https://heroku.com/deploy)
### Run the server ###
Install the dependencies
```node
npm install
```
Start the service
```node
npm start
```## Endpoints ##
### Ping ###
**endpoint structure**
```
GET /ping
```
response:
```
{"message":"pong"}
```### Play Video ###
The `play` endpoint requires a `channelName`, the user's `uid`, the video `url` and an optional `token` in the body.**endpoint structure**
```
POST /play
```example body:
```
{
channel: "test",
uid: 1,
token: null,
url: "https://example.com/video.mp4""
}
```
Headers:
```
Content-Type: `application/json`
```