@vouchfor/embeds 2.0.1 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouchfor/embeds",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "license": "MIT",
5
5
  "author": "Aaron Williams",
6
6
  "main": "dist/es/embeds.js",
@@ -46,7 +46,7 @@
46
46
  "@a11y/focus-trap": "^1.0.5",
47
47
  "@lit/task": "^1.0.0",
48
48
  "@vouchfor/canvas-video": "^8.0.0",
49
- "@vouchfor/media-player": "^3.0.1",
49
+ "@vouchfor/media-player": "^3.0.3",
50
50
  "uuid": "^9.0.1"
51
51
  },
52
52
  "peerDependencies": {
@@ -65,7 +65,7 @@
65
65
  "@types/mocha": "^10.0.6",
66
66
  "@vouchfor/eslint-config": "^1.0.1",
67
67
  "@vouchfor/prettier-config": "^1.0.1",
68
- "@vouchfor/video-utils": "^1.0.1",
68
+ "@vouchfor/video-utils": "^1.0.3",
69
69
  "@web/dev-server-esbuild": "^1.0.2",
70
70
  "@web/test-runner": "^0.18.1",
71
71
  "@web/test-runner-browserstack": "^0.7.1",
@@ -13,7 +13,10 @@ import { TrackingController } from './controllers/tracking';
13
13
 
14
14
  import '@vouchfor/media-player';
15
15
 
16
- type PlayerEmbedProps = Pick<MediaPlayerProps, 'data' | 'aspectRatio' | 'preload' | 'autoplay' | 'controls'> & {
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',
@@ -228,6 +232,7 @@ class PlayerEmbed extends LitElement {
228
232
  .template=${this.template}
229
233
  aspectRatio=${ifDefined(this.aspectRatio)}
230
234
  preload=${ifDefined(this.preload)}
235
+ language=${ifDefined(this.language)}
231
236
  .controls=${this.controls}
232
237
  ></vmp-media-player>
233
238
  `;