0.1.2 • Published 2 years ago
daily-opentok-client v0.1.2
daily-opentok-client
Module
Run:
npm install daily-opentok-client
Replace:
import * as OT from "@opentok/client";
with:
import * as OT from "daily-opentok-client";
Or, if you're using a script tag:
Replace:
<script src="https://static.opentok.com/v2/js/opentok.min.js"></script>
with:
<script src="https://unpkg.com/daily-opentok-client"></script>
When you call OT.initSession, replace your OpenTok session id with your daily room URL.
// apiKey can be left blank
const apiKey = "";
const sessionId = "https://example.daily.co/example";
OT.initSession(apiKey, sessionId);
Local Testing
To test with the included sample project run:
npm run start
To test integrating your current changes with another project using a script tag, run:
npm run start:tag
And replace:
<script src="https://static.opentok.com/v2/js/opentok.min.js"></script>
with:
<script src="https://127.0.0.1:4173/opentok.umd.js"></script>
0.1.2-beta.2
2 years ago
0.1.2-beta.0
2 years ago
0.1.2-beta.1
2 years ago
0.1.2-beta.4
2 years ago
0.1.2-beta.5
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.14
2 years ago
0.1.0
2 years ago
0.0.10
3 years ago
0.0.3
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.1
3 years ago
0.0.2
3 years ago
0.0.0
3 years ago