@@ -97,7 +97,7 @@ get(new Route("/start") {
97
97
});
98
98
```
99
99
100
- In this handler the ` startArchive() ` method of the ` opentok ` instance is called with the ` sessionId `
100
+ In this handler, the ` startArchive() ` method of the ` opentok ` instance is called with the ` sessionId `
101
101
for the session that needs to be archived. The optional second argument is ` name ` , which stored with
102
102
the archive and can be read later. In this case, as in the HelloWorld sample app, there is
103
103
only one session created and it is used here and for the participant view. This will trigger the
@@ -226,7 +226,7 @@ This view is paginated so that we don't potentially show hundreds of rows on the
226
226
be difficult for the user to navigate. So this code starts by figuring out which page needs to be
227
227
shown, where each page is a set of 5 archives. The ` page ` number is read from the request's query
228
228
string parameters as a string and then parsed into an ` int ` . The ` offset ` , which represents how many
229
- archives are being skipped is always calculated as five time as pages that are less than the current
229
+ archives are being skipped is always calculated as five times as pages that are less than the current
230
230
page, which is ` (page - 1) * 5 ` . Now there is enough information to ask for a list of archives from
231
231
OpenTok, which we do by calling the ` listArchives() ` method of the ` opentok ` instance. The first
232
232
parameter is the offset, and the second is the count (which is always 5 in this view). If we are not
@@ -237,7 +237,7 @@ using that information and the partial list of archives.
237
237
At this point the template file ` src/main/resources/com/example/freemarker/history.ftl ` handles
238
238
looping over the array of archives and outputting the proper information for each column in the
239
239
table. It also places a link to the download and delete routes around the archive's name and
240
- it's delete button, respectively.
240
+ its delete button, respectively.
241
241
242
242
The code for the download route handler is shown below:
243
243
0 commit comments