@broadcastingplatforms/player 0.0.0-dev.0c8c26d

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.
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Centralized HTML attributes used by BP Player components.
3
+ */
4
+ export declare enum Attribute {
5
+ CONFIGURATION = "configuration",
6
+ SOURCE = "source",
7
+ SOURCES = "sources",
8
+ AUTOPLAY = "autoplay",
9
+ MUTED = "muted",
10
+ LOOP = "loop",
11
+ SCALING = "scaling",
12
+ ASPECT_RATIO = "aspect-ratio",
13
+ DEBUG = "debug",
14
+ AUTOHIDE = "autohide",
15
+ HOTKEYS = "hotkeys",
16
+ PAUSED = "paused",
17
+ PLAYING = "playing",
18
+ ENDED = "ended",
19
+ SEEKING = "seeking",
20
+ WAITING = "waiting",
21
+ LOADING = "loading",
22
+ READY = "ready",
23
+ HAS_ERROR = "has-error",
24
+ HAS_FIRST_PLAY = "has-first-play",
25
+ FULLSCREEN = "fullscreen",
26
+ FULLWINDOW = "fullwindow",
27
+ DEVICE_TYPE = "device-type",
28
+ MOBILE = "mobile",
29
+ TV = "tv",
30
+ STREAM_TYPE = "stream-type",
31
+ LIVE = "live",
32
+ CONTENT_TYPE = "content-type",
33
+ USER_IDLE = "user-idle",
34
+ USER_IDLE_TIMEOUT = "user-idle-timeout",
35
+ MOBILE_ONLY = "mobile-only",
36
+ MOBILE_HIDDEN = "mobile-hidden",
37
+ TV_ONLY = "tv-only",
38
+ TV_HIDDEN = "tv-hidden",
39
+ LIVE_ONLY = "live-only",
40
+ LIVE_HIDDEN = "live-hidden",
41
+ VOD_HIDDEN = "vod-hidden",
42
+ CLIP_HIDDEN = "clip-hidden",
43
+ NO_AUTO_HIDE = "no-auto-hide",
44
+ DISABLED = "disabled",
45
+ HIDDEN = "hidden",
46
+ NOTOOLTIP = "notooltip",
47
+ MENU = "menu",
48
+ MENU_OPENED = "menu-opened",
49
+ ARIA_LABEL = "aria-label",
50
+ ARIA_LIVE = "aria-live",
51
+ ARIA_CHECKED = "aria-checked",
52
+ VOLUME_LEVEL = "volume-level",
53
+ PROVIDER_TYPE = "provider-type"
54
+ }
55
+ /**
56
+ * Toggle an attribute on/off based on a boolean value.
57
+ */
58
+ export declare function toggleAttribute(element: Element, name: string, force?: boolean): boolean;
59
+ //# sourceMappingURL=attribute.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './attribute';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@broadcastingplatforms/player",
3
+ "version": "0.0.0-dev.0c8c26d",
4
+ "description": "Universal video player web component built with Lit",
5
+ "type": "module",
6
+ "main": "dist/bp-player.js",
7
+ "module": "dist/bp-player.mjs",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/bp-player.mjs",
13
+ "require": "./dist/bp-player.js"
14
+ },
15
+ "./standalone": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/bp-player.standalone.mjs"
18
+ },
19
+ "./elements": {
20
+ "types": "./dist/elements/index.d.ts",
21
+ "import": "./dist/elements/index.js"
22
+ },
23
+ "./elements/hls-video": {
24
+ "types": "./dist/elements/hls-video.d.ts",
25
+ "import": "./dist/elements/hls-video.js"
26
+ },
27
+ "./elements/nano-video": {
28
+ "types": "./dist/elements/nano-video.d.ts",
29
+ "import": "./dist/elements/nano-video.js"
30
+ },
31
+ "./elements/livekit-video": {
32
+ "types": "./dist/elements/livekit-video.d.ts",
33
+ "import": "./dist/elements/livekit-video.js"
34
+ },
35
+ "./dist/*": "./dist/*",
36
+ "./package.json": "./package.json"
37
+ },
38
+ "files": [
39
+ "dist/",
40
+ "!**/*.map"
41
+ ],
42
+ "dependencies": {
43
+ "better-call": "^1.0.6",
44
+ "custom-media-element": "^1.4.0",
45
+ "hls.js": "^1.5.17",
46
+ "lit": "^3.2.1",
47
+ "livekit-client": "^2.6.2",
48
+ "media-chrome": "^4.2.2",
49
+ "media-tracks": "^0.3.3"
50
+ },
51
+ "devDependencies": {
52
+ "@types/node": "^22.10.2",
53
+ "concurrently": "^9.1.2",
54
+ "esbuild": "^0.24.0",
55
+ "typescript": "^5.7.2",
56
+ "vite": "^6.0.5",
57
+ "@broadcastingplatforms/web-connectors": "0.0.0-dev.0c8c26d"
58
+ },
59
+ "license": "UNLICENSED",
60
+ "publishConfig": {
61
+ "access": "public"
62
+ },
63
+ "scripts": {
64
+ "build": "pnpm build:types && pnpm build:bundle",
65
+ "build:types": "tsc --emitDeclarationOnly",
66
+ "build:bundle": "node build.mjs",
67
+ "build:prod": "NODE_ENV=production pnpm build",
68
+ "dev": "concurrently \"tsc --emitDeclarationOnly --watch --preserveWatchOutput\" \"node build.mjs --watch\"",
69
+ "dev:demo": "vite"
70
+ }
71
+ }