Skip to content

Commit

Permalink
Merge pull request #58 from nexmo-se/main
Browse files Browse the repository at this point in the history
Remove old Heroku links
  • Loading branch information
devwithzachary authored Feb 23, 2023
2 parents 8aad6b6 + 16661dc commit 4b8e638
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ HTTPS is required. A web server such as [MAMP](https://www.mamp.info/) or
[XAMPP](https://www.apachefriends.org/index.html) will work, or you can use a cloud service such
as [Heroku](https://www.heroku.com/) to host the application.

To try out the Broadcast Sample App, visit the following URLs:

Host: [https://broadcast-sample.herokuapp.com/host?room={yourRoomName}](https://broadcast-sample.herokuapp.com/host)
Guest: [https://broadcast-sample.herokuapp.com/guest?room={yourRoomName}](https://broadcast-sample.herokuapp.com/guest)
Viewer: [https://broadcast-sample.herokuapp.com/viewer?room={yourRoomName}](https://broadcast-sample.herokuapp.com/viewer)

### Starting a broadcast

From the host view, press the `Start Broadcast` button and optionally provide the RTMP Server URL and Stream Name. You can configure different parametes for the broadcast (HLS Low Latency, DVR and Full HD)
Expand Down Expand Up @@ -145,9 +139,9 @@ defined in [opentok-api.js](./services/opentok-api.js):
```javascript
const tokenOptions = (userType) => {
const role = {
host: 'moderator',
guest: 'publisher',
viewer: 'subscriber',
host: "moderator",
guest: "publisher",
viewer: "subscriber",
}[userType];

return { role };
Expand All @@ -158,11 +152,11 @@ The credentials are embedded in an EJS template as JSON. For example, the follow
route is configured in server.js:

```javascript
app.get('/host', async (req, res) => {
app.get("/host", async (req, res) => {
const roomName = req.query.room;
try {
const credentials = await generateCredentials('host', roomName);
res.render('pages/host', {
const credentials = await generateCredentials("host", roomName);
res.render("pages/host", {
credentials: JSON.stringify(credentials),
});
} catch (e) {
Expand Down
Binary file removed public/images/host.jpg
Binary file not shown.
Binary file added public/images/host.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b8e638

Please sign in to comment.