Skip to content

Commit

Permalink
Update app to use accelerator-core >=2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maikthomas committed Apr 17, 2017
1 parent b2fa7aa commit 41b277a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vanilla-js-sample-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"body-parser": "^1.16.0",
"express": "^4.14.1",
"opentok-accelerator-core": "*",
"opentok-accelerator-core": ">=2.0.0",
"opentok-annotation": "*",
"opentok-archiving": "*",
"opentok-screen-sharing": "*",
Expand Down
5 changes: 3 additions & 2 deletions vanilla-js-sample-app/public/js/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* global otCore */
/* global AccCore */

let otCore;
const options = {
// A container can either be a query selector or an HTMLElement
streamContainers: function streamContainers(pubSub, type, data) {
Expand Down Expand Up @@ -175,7 +176,7 @@ const app = () => {
* Initialize otCore, connect to the session, and listen to events
*/
const init = () => {
otCore.init(options);
otCore = new AccCore(options);
otCore.connect().then(() => updateState({ connected: true }));
createEventListeners();
};
Expand Down

0 comments on commit 41b277a

Please sign in to comment.