@@ -106,6 +106,30 @@ creating an archive. Much of the functionality is done in the client with JavaSc
106
106
be found in the ` static/js/host.js ` file. Read about the
107
107
[ OpenTok.js JavaScript] ( http://tokbox.com/opentok/libraries/client/js/ ) library to learn more.
108
108
109
+ ### Creating Archives - Participant View
110
+
111
+ With the host view still open and publishing, open an additional window or tab and navigate to
112
+ < http://localhost:5000/participant > and allow the browser to use your camera and microphone. Once
113
+ again, start archiving in the host view. Back in the participant view, notice that the red blinking
114
+ indicator has been shown so that the participant knows his video is being recorded. Now stop the
115
+ archiving in the host view. Notice that the indicator has gone away in the participant view too.
116
+
117
+ Creating this view on the server is as simple as the HelloWorld sample application. See the code
118
+ for the route handler below:
119
+
120
+ ``` python
121
+ @app.route (" /participant" )
122
+ def participant ():
123
+ key = api_key
124
+ session_id = session.session_id
125
+ token = opentok.generate_token(session_id)
126
+ return render_template(' participant.html' , api_key = key, session_id = session_id, token = token)
127
+ ```
128
+
129
+ Since this view has no further interactivity with buttons, this is all that is needed for a client
130
+ that is participating in an archived session. Once again, much of the functionality is implemented
131
+ in the client, in code that can be found in the ` static/js/participant.js ` file.
132
+
109
133
### Past Archives
110
134
111
135
Start by visiting the history page at < http://localhost:5000/history > . You will see a table that
0 commit comments