@vizbeetv/sdk-qa 7.8.36 → 7.8.38
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 +42 -18
- package/chromecast/index.js +1 -1
- package/chromecast-v2/es5/index.js +1 -1
- package/chromecast-v2/es6/index.js +1 -1
- package/lg/es5/index.js +1 -1
- package/lg/es6/index.js +1 -1
- package/package.json +54 -15
- package/samsung/es5/index.js +1 -1
- package/samsung/es6/index.js +1 -1
- package/types/index.d.ts +486 -0
- package/types/vtvsdk/src/core/session/SessionState.d.ts +45 -0
- package/types/vtvsdk/src/core/session/SessionStateListener.d.ts +23 -0
- package/types/vtvsdk/src/core/session/base/VizbeeMessagingClient.d.ts +38 -0
- package/types/vtvsdk/src/core/session/base/VizbeePresenceClient.d.ts +7 -0
- package/types/vtvsdk/src/core/session/bicast/VizbeeBicastMemberPresenceClientImpl.d.ts +17 -0
- package/types/vtvsdk/src/core/session/bicast/VizbeeBicastMessagingClientImpl.d.ts +54 -0
- package/types/vtvsdk/src/core/session/bicast/VizbeeBicastSession.d.ts +25 -0
- package/types/vtvsdk/src/core/session/bicast/VizbeeBicastSessionManager.d.ts +63 -0
- package/types/vtvsdk/src/core/session/bicast/VizbeePresenceManager.d.ts +24 -0
- package/types/vtvsdk/src/core/session/models/MemberInfo.d.ts +39 -0
- package/types/vtvsdk/src/core/session/models/MemberType.d.ts +49 -0
- package/types/vtvsdk/src/core/session/models/VizbeeDevice.d.ts +26 -0
- package/types/vtvsdk/src/core/session/models/VizbeeDeviceType.d.ts +10 -0
- package/types/vtvsdk/src/core/session/models/presence/PresenceEventResult.d.ts +11 -0
- package/types/vtvsdk/src/core/sync/presence/Device.d.ts +34 -0
- package/types/vtvsdk/src/core/sync/presence/DeviceType.d.ts +6 -0
- package/types/vtvsdk/src/core/sync/presence/PresenceEvent.d.ts +4 -0
- package/types/vtvsdk/src/core/sync/presence/PresenceEventResult.d.ts +8 -0
- package/vizio/index.js +1 -1
- package/xbox/es5/index.js +1 -1
- package/xbox/es6/index.js +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @vizbeetv/sdk-qa
|
|
2
2
|
|
|
3
3
|
Vizbee TV SDK — pre-built platform bundles distributed as a single npm package with subpath exports.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @vizbeetv/sdk-qa
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -16,52 +16,46 @@ Import the subpath that matches your target platform. Each subpath resolves to a
|
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
18
|
// ES5 — Tizen 2.x / Chrome 38+ (default)
|
|
19
|
-
import vizbee from '@
|
|
19
|
+
import vizbee from '@vizbeetv/sdk-qa/samsung';
|
|
20
20
|
|
|
21
21
|
// ES6 — Tizen 5.5+ / Chrome 72+
|
|
22
|
-
import vizbee from '@
|
|
22
|
+
import vizbee from '@vizbeetv/sdk-qa/samsung/es6';
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
### LG (WebOS)
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
28
|
// ES5 — WebOS 3.x / Chrome 38+ (default)
|
|
29
|
-
import vizbee from '@
|
|
29
|
+
import vizbee from '@vizbeetv/sdk-qa/lg';
|
|
30
30
|
|
|
31
31
|
// ES6 — WebOS 6+ / Chrome 72+
|
|
32
|
-
import vizbee from '@
|
|
32
|
+
import vizbee from '@vizbeetv/sdk-qa/lg/es6';
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Vizio SmartCast
|
|
36
36
|
|
|
37
37
|
```js
|
|
38
|
-
import vizbee from '@
|
|
38
|
+
import vizbee from '@vizbeetv/sdk-qa/vizio';
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
### Xbox
|
|
42
42
|
|
|
43
43
|
```js
|
|
44
44
|
// ES5 (default)
|
|
45
|
-
import vizbee from '@
|
|
45
|
+
import vizbee from '@vizbeetv/sdk-qa/xbox';
|
|
46
46
|
|
|
47
47
|
// ES6
|
|
48
|
-
import vizbee from '@
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Chromecast CAF (v3)
|
|
52
|
-
|
|
53
|
-
```js
|
|
54
|
-
import vizbee from '@vizbee/sdk-qa/chromecast';
|
|
48
|
+
import vizbee from '@vizbeetv/sdk-qa/xbox/es6';
|
|
55
49
|
```
|
|
56
50
|
|
|
57
51
|
### Chromecast v2 (MediaManager)
|
|
58
52
|
|
|
59
53
|
```js
|
|
60
54
|
// ES5 (default)
|
|
61
|
-
import vizbee from '@
|
|
55
|
+
import vizbee from '@vizbeetv/sdk-qa/chromecast-v2';
|
|
62
56
|
|
|
63
57
|
// ES6
|
|
64
|
-
import vizbee from '@
|
|
58
|
+
import vizbee from '@vizbeetv/sdk-qa/chromecast-v2/es6';
|
|
65
59
|
```
|
|
66
60
|
|
|
67
61
|
## Platform reference
|
|
@@ -75,10 +69,40 @@ import vizbee from '@vizbee/sdk-qa/chromecast-v2/es6';
|
|
|
75
69
|
| `/vizio` | Vizio SmartCast | ES5 |
|
|
76
70
|
| `/xbox`, `/xbox/es5` | Xbox | ES5 |
|
|
77
71
|
| `/xbox/es6` | Xbox | ES6 |
|
|
78
|
-
| `/chromecast` | Chromecast CAF (v3) | ES5 |
|
|
79
72
|
| `/chromecast-v2`, `/chromecast-v2/es5` | Chromecast v2 (MediaManager) | ES5 |
|
|
80
73
|
| `/chromecast-v2/es6` | Chromecast v2 (MediaManager) | ES6 |
|
|
81
74
|
|
|
75
|
+
## TypeScript
|
|
76
|
+
|
|
77
|
+
The package ships TypeScript declarations. The default export is the typed SDK
|
|
78
|
+
instance — its `continuity` API (context, adapters, messages) is fully typed —
|
|
79
|
+
and the SDK's public types are also importable as named exports for use in
|
|
80
|
+
annotations:
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import vizbee, {
|
|
84
|
+
VideoInfo,
|
|
85
|
+
PlayerAdapter,
|
|
86
|
+
SessionState,
|
|
87
|
+
VizbeeMessagingClient,
|
|
88
|
+
} from '@vizbeetv/sdk-qa/samsung';
|
|
89
|
+
|
|
90
|
+
// Default export: the SDK instance. Its continuity API is typed end-to-end.
|
|
91
|
+
const ctx = vizbee.continuity.ContinuityContext.getInstance();
|
|
92
|
+
ctx.start('vzb1234567');
|
|
93
|
+
ctx.getAppAdapter().setDeeplinkHandler((video: VideoInfo) => {
|
|
94
|
+
/* deeplink into video.guid / video.videoUrl … */
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
// Named exports: use the SDK's types in your own signatures.
|
|
98
|
+
function onSessionState(state: SessionState) { /* ... */ }
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
The same type surface is exposed from every platform subpath.
|
|
102
|
+
|
|
103
|
+
> Requires `moduleResolution` set to `bundler`, `node16`, or `nodenext` in your
|
|
104
|
+
> `tsconfig.json` (the same requirement as resolving the platform subpaths).
|
|
105
|
+
|
|
82
106
|
## Window globals
|
|
83
107
|
|
|
84
108
|
Each bundle also sets `window.VizbeeSDK` and `window.vizbee` on load for backward compatibility with existing script-tag consumers. The default export and the window global point to the same object.
|