Skip to content

Commit 4b8e638

Browse files
Merge pull request #58 from nexmo-se/main
Remove old Heroku links
2 parents 8aad6b6 + 16661dc commit 4b8e638

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

README.md

+6-12
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ HTTPS is required. A web server such as [MAMP](https://www.mamp.info/) or
7575
[XAMPP](https://www.apachefriends.org/index.html) will work, or you can use a cloud service such
7676
as [Heroku](https://www.heroku.com/) to host the application.
7777

78-
To try out the Broadcast Sample App, visit the following URLs:
79-
80-
Host: [https://broadcast-sample.herokuapp.com/host?room={yourRoomName}](https://broadcast-sample.herokuapp.com/host)
81-
Guest: [https://broadcast-sample.herokuapp.com/guest?room={yourRoomName}](https://broadcast-sample.herokuapp.com/guest)
82-
Viewer: [https://broadcast-sample.herokuapp.com/viewer?room={yourRoomName}](https://broadcast-sample.herokuapp.com/viewer)
83-
8478
### Starting a broadcast
8579

8680
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)
@@ -145,9 +139,9 @@ defined in [opentok-api.js](./services/opentok-api.js):
145139
```javascript
146140
const tokenOptions = (userType) => {
147141
const role = {
148-
host: 'moderator',
149-
guest: 'publisher',
150-
viewer: 'subscriber',
142+
host: "moderator",
143+
guest: "publisher",
144+
viewer: "subscriber",
151145
}[userType];
152146

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

160154
```javascript
161-
app.get('/host', async (req, res) => {
155+
app.get("/host", async (req, res) => {
162156
const roomName = req.query.room;
163157
try {
164-
const credentials = await generateCredentials('host', roomName);
165-
res.render('pages/host', {
158+
const credentials = await generateCredentials("host", roomName);
159+
res.render("pages/host", {
166160
credentials: JSON.stringify(credentials),
167161
});
168162
} catch (e) {

public/images/host.jpg

-109 KB
Binary file not shown.

public/images/host.png

614 KB
Loading

0 commit comments

Comments
 (0)