@flowplayer/spins 0.3.3 → 0.4.0

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/dist/types.d.ts CHANGED
@@ -48,6 +48,12 @@ interface SpinsConfig {
48
48
  * @see https://developer.wowza.com/docs/wowza-flowplayer/plugins/advertising/#ima-object-configuration
49
49
  */
50
50
  ima?: PlayerIMAConfig;
51
+ /**
52
+ * Show ads every Nth spin.
53
+ * For example, if set to 3, ads will be shown on the 3rd, 6th, 9th, etc. spin.
54
+ * @default 10
55
+ */
56
+ adsFrequency?: number;
51
57
  /**
52
58
  * Configuration for Share plugin
53
59
  * @see https://developer.wowza.com/docs/wowza-flowplayer/plugins/sharing/
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flowplayer/spins",
3
3
  "module": "dist/index.js",
4
- "version": "0.3.3",
4
+ "version": "0.4.0",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
7
7
  "exports": {
@@ -34,7 +34,10 @@
34
34
  "@storybook/web-components-vite": "^9.0.16",
35
35
  "@types/bun": "latest",
36
36
  "@vitest/browser": "^3.2.4",
37
+ "@alugha/ima": "^2.2.1",
38
+ "@types/qs": "^6.9.7",
37
39
  "@vitest/coverage-v8": "^3.2.4",
40
+ "@types/can-autoplay": "^3.0.1",
38
41
  "chromatic": "^13.1.2",
39
42
  "husky": "^9.1.7",
40
43
  "tsup": "^8.5.0",
@@ -49,6 +52,9 @@
49
52
  "dependencies": {
50
53
  "@flowplayer/player": "^3.28.2",
51
54
  "@flowplayer/translations": "^2.2.0",
55
+ "bowser": "^2.11.0",
56
+ "can-autoplay": "^3.0.2",
57
+ "jwt-decode": "^2.2.0",
52
58
  "zod": "^3.25.76"
53
59
  }
54
60
  }