@vouchfor/embeds 0.0.0-experiment.67a6760 → 0.0.0-experiment.6cd6e07
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/es/embeds.js +9 -4
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/src/components/PlayerEmbed/index.d.ts +2 -1
- package/dist/iife/dialog-embed/embed.iife.js +221 -213
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -1
- package/dist/iife/embeds.iife.js +210 -202
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/embed.iife.js +195 -187
- package/dist/iife/player-embed/embed.iife.js.map +1 -1
- package/package.json +4 -4
- package/src/components/PlayerEmbed/PlayerEmbed.stories.ts +15 -1
- package/src/components/PlayerEmbed/index.ts +7 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vouchfor/embeds",
|
3
|
-
"version": "0.0.0-experiment.
|
3
|
+
"version": "0.0.0-experiment.6cd6e07",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Aaron Williams",
|
6
6
|
"main": "dist/es/embeds.js",
|
@@ -42,8 +42,8 @@
|
|
42
42
|
"dependencies": {
|
43
43
|
"@a11y/focus-trap": "^1.0.5",
|
44
44
|
"@lit/task": "^1.0.0",
|
45
|
-
"@vouchfor/canvas-video": "0.0.0-experiment.
|
46
|
-
"@vouchfor/media-player": "0.0.0-experiment.
|
45
|
+
"@vouchfor/canvas-video": "0.0.0-experiment.6cd6e07",
|
46
|
+
"@vouchfor/media-player": "0.0.0-experiment.6cd6e07",
|
47
47
|
"uuid": "^9.0.1"
|
48
48
|
},
|
49
49
|
"peerDependencies": {
|
@@ -62,7 +62,7 @@
|
|
62
62
|
"@types/mocha": "^10.0.6",
|
63
63
|
"@vouchfor/eslint-config": "^1.0.1",
|
64
64
|
"@vouchfor/prettier-config": "^1.0.1",
|
65
|
-
"@vouchfor/video-utils": "0.0.0-experiment.
|
65
|
+
"@vouchfor/video-utils": "0.0.0-experiment.6cd6e07",
|
66
66
|
"@web/dev-server-esbuild": "^1.0.2",
|
67
67
|
"@web/test-runner": "^0.18.1",
|
68
68
|
"@web/test-runner-browserstack": "^0.7.1",
|
@@ -58,7 +58,21 @@ const Player: Story = {
|
|
58
58
|
questions: [],
|
59
59
|
aspectRatio: 0,
|
60
60
|
preload: 'none',
|
61
|
-
autoplay: false
|
61
|
+
autoplay: false,
|
62
|
+
controls: [
|
63
|
+
'progress',
|
64
|
+
'play-large',
|
65
|
+
'navigation',
|
66
|
+
'play',
|
67
|
+
'volume',
|
68
|
+
'current-time',
|
69
|
+
'duration',
|
70
|
+
'speed',
|
71
|
+
'captions',
|
72
|
+
'fullscreen',
|
73
|
+
'preview',
|
74
|
+
'languages'
|
75
|
+
]
|
62
76
|
},
|
63
77
|
argTypes: {
|
64
78
|
env: {
|
@@ -13,7 +13,10 @@ import { TrackingController } from './controllers/tracking';
|
|
13
13
|
|
14
14
|
import '@vouchfor/media-player';
|
15
15
|
|
16
|
-
type PlayerEmbedProps = Pick<
|
16
|
+
type PlayerEmbedProps = Pick<
|
17
|
+
MediaPlayerProps,
|
18
|
+
'data' | 'aspectRatio' | 'language' | 'preload' | 'autoplay' | 'controls'
|
19
|
+
> & {
|
17
20
|
env: Environment;
|
18
21
|
apiKey: string;
|
19
22
|
disableTracking?: boolean;
|
@@ -48,6 +51,7 @@ class PlayerEmbed extends LitElement {
|
|
48
51
|
@property({ type: String }) preload: PlayerEmbedProps['preload'] = 'auto';
|
49
52
|
@property({ type: Boolean }) autoplay: PlayerEmbedProps['autoplay'] = false;
|
50
53
|
@property({ type: Number }) aspectRatio: PlayerEmbedProps['aspectRatio'] = 0;
|
54
|
+
@property({ type: String }) language?: MediaPlayerProps['language'];
|
51
55
|
|
52
56
|
private eventController = new EventForwardController(this, [
|
53
57
|
'durationchange',
|
@@ -60,6 +64,7 @@ class PlayerEmbed extends LitElement {
|
|
60
64
|
'playing',
|
61
65
|
'ratechange',
|
62
66
|
'scenechange',
|
67
|
+
'scenesupdate',
|
63
68
|
'seeking',
|
64
69
|
'seeked',
|
65
70
|
'timeupdate',
|
@@ -228,6 +233,7 @@ class PlayerEmbed extends LitElement {
|
|
228
233
|
.template=${this.template}
|
229
234
|
aspectRatio=${ifDefined(this.aspectRatio)}
|
230
235
|
preload=${ifDefined(this.preload)}
|
236
|
+
language=${ifDefined(this.language)}
|
231
237
|
.controls=${this.controls}
|
232
238
|
></vmp-media-player>
|
233
239
|
`;
|