@thestatic-tv/dcl-sdk 2.2.9 → 2.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,11 +14,13 @@ This SDK allows DCL scene builders to:
|
|
|
14
14
|
|
|
15
15
|
## Pricing
|
|
16
16
|
|
|
17
|
-
| Mode | Price |
|
|
18
|
-
|
|
19
|
-
| **Lite** | $5/mo |
|
|
20
|
-
| **Full** | $10/mo |
|
|
17
|
+
| Mode | Price | Features |
|
|
18
|
+
|------|-------|----------|
|
|
19
|
+
| **Lite** | $5/mo | Session/visitor tracking only |
|
|
20
|
+
| **Full** | $10/mo | Guide UI, Chat UI, Heartbeat, Sessions, Interactions |
|
|
21
21
|
|
|
22
|
+
> **All keys use `dcls_` prefix** - the server determines your subscription level.
|
|
23
|
+
>
|
|
22
24
|
> **Free Trial**: All new scene keys include a 7-day free trial!
|
|
23
25
|
>
|
|
24
26
|
> **Expiry Warnings**: You'll receive dashboard notifications at 7, 3, and 1 days before your subscription expires.
|
|
@@ -62,7 +64,7 @@ npm install @thestatic-tv/dcl-sdk
|
|
|
62
64
|
import { StaticTVClient } from '@thestatic-tv/dcl-sdk'
|
|
63
65
|
|
|
64
66
|
const staticTV = new StaticTVClient({
|
|
65
|
-
apiKey: '
|
|
67
|
+
apiKey: 'dcls_your_api_key_here',
|
|
66
68
|
debug: true // Enable for development
|
|
67
69
|
})
|
|
68
70
|
```
|
|
@@ -148,7 +150,7 @@ Main client class for interacting with thestatic.tv.
|
|
|
148
150
|
|
|
149
151
|
| Option | Type | Default | Description |
|
|
150
152
|
|--------|------|---------|-------------|
|
|
151
|
-
| `apiKey` | `string` | required | Your API key (
|
|
153
|
+
| `apiKey` | `string` | required | Your API key (all keys use `dcls_` prefix) |
|
|
152
154
|
| `autoStartSession` | `boolean` | `true` | Automatically start session tracking |
|
|
153
155
|
| `sessionHeartbeatInterval` | `number` | `30000` | Session heartbeat interval (ms) |
|
|
154
156
|
| `watchHeartbeatInterval` | `number` | `60000` | Watch heartbeat interval (ms) |
|
|
@@ -215,7 +217,7 @@ Built-in channel browser UI. You provide a callback to handle video selection.
|
|
|
215
217
|
```typescript
|
|
216
218
|
// Configure in constructor
|
|
217
219
|
const staticTV = new StaticTVClient({
|
|
218
|
-
apiKey: '
|
|
220
|
+
apiKey: 'dcls_your_api_key',
|
|
219
221
|
guideUI: {
|
|
220
222
|
onVideoSelect: (video) => {
|
|
221
223
|
// Handle video playback in your scene
|
|
@@ -249,7 +251,7 @@ Real-time chat with Firebase authentication.
|
|
|
249
251
|
```typescript
|
|
250
252
|
// Configure in constructor
|
|
251
253
|
const staticTV = new StaticTVClient({
|
|
252
|
-
apiKey: '
|
|
254
|
+
apiKey: 'dcls_your_api_key',
|
|
253
255
|
chatUI: {
|
|
254
256
|
position: 'right', // 'left', 'center', or 'right'
|
|
255
257
|
fontScale: 1.0
|
package/package.json
CHANGED