Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(FEC-13749): transcript detach analytyc events #175

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@babel/runtime": "^7.23.8",
"@microsoft/api-extractor": "^7.39.1",
"@playkit-js/browserslist-config": "1.0.8",
"@playkit-js/kaltura-player-js": "3.17.12-canary.0-d07f1c5",
"@playkit-js/kaltura-player-js": "3.17.16",
"@playkit-js/moderation": "3.2.13-canary.0-5376147",
"@playkit-js/playkit-js": "^0.84.6",
"@playkit-js/playkit-js-downloads": "1.1.0-canary.0-60c49dc",
Expand Down Expand Up @@ -67,7 +67,7 @@
"webpack-dev-server": "^4.15.1"
},
"peerDependencies": {
"@playkit-js/kaltura-player-js": "^3.17.10",
"@playkit-js/kaltura-player-js": "3.17.16",
"@playkit-js/playkit-js": "^0.84.6",
"@playkit-js/playkit-js-providers": "^2.40.4"
},
Expand Down
36 changes: 36 additions & 0 deletions src/application-events-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,42 @@ export const ApplicationEventsModel: { [playerEventName: string]: KavaEvent } =
eventVar3: payload.index
})
},
[PluginsEvents.TRANSCRIPT_POPOUT_OPEN]: {
type: 'TRANSCRIPT_POPOUT_OPEN',
getEventModel: () => ({
eventType: ApplicationEventType.BUTTON_CLICKED,
eventVar1: 'Transcript_popout_open',
eventVar2: ButtonType.Expand,
eventVar3: ''
})
},
[PluginsEvents.TRANSCRIPT_POPOUT_CLOSE]: {
type: 'TRANSCRIPT_POPOUT_CLOSE',
getEventModel: (payload: { type: string }) => ({
eventType: ApplicationEventType.BUTTON_CLICKED,
eventVar1: 'Transcript_popout_close',
eventVar2: ButtonType.Collapse,
eventVar3: payload.type
})
},
[PluginsEvents.TRANSCRIPT_POPOUT_DRAG]: {
type: 'TRANSCRIPT_POPOUT_DRAG',
getEventModel: (payload: { position: { x: number; y: number } }) => ({
eventType: ApplicationEventType.BUTTON_CLICKED,
eventVar1: 'Transcript_popout_drag',
eventVar2: ButtonType.Edit,
eventVar3: payload.position
})
},
[PluginsEvents.TRANSCRIPT_POPOUT_RESIZE]: {
type: 'TRANSCRIPT_POPOUT_RESIZE',
getEventModel: (payload: { size: { x: number; y: number } }) => ({
eventType: ApplicationEventType.BUTTON_CLICKED,
eventVar1: 'Transcript_popout_resize',
eventVar2: ButtonType.Edit,
eventVar3: payload.size
})
},
[PluginsEvents.PLAYLIST_OPEN]: {
type: 'PLAYLIST_OPEN',
getEventModel: (payload: any): any => ({
Expand Down
6 changes: 5 additions & 1 deletion src/applications-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export const TranscriptEvents = {
TRANSCRIPT_DOWNLOAD: 'transcript_download',
TRANSCRIPT_PRINT: 'transcript_print',
TRANSCRIPT_SEARCH: 'transcript_search',
TRANSCRIPT_NAVIGATE_RESULT: 'transcript_navigate_result'
TRANSCRIPT_NAVIGATE_RESULT: 'transcript_navigate_result',
TRANSCRIPT_POPOUT_OPEN: 'transcript_popout_open',
TRANSCRIPT_POPOUT_CLOSE: 'transcript_popout_close',
TRANSCRIPT_POPOUT_DRAG: 'transcript_popout_drag',
TRANSCRIPT_POPOUT_RESIZE: 'transcript_popout_resize'
};

export const DualscreenEvents = {
Expand Down
69 changes: 37 additions & 32 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1296,17 +1296,17 @@
classnames "^2.3.2"
linkify-it "^4.0.1"

"@playkit-js/[email protected].12-canary.0-d07f1c5":
version "3.17.12-canary.0-d07f1c5"
resolved "https://registry.yarnpkg.com/@playkit-js/kaltura-player-js/-/kaltura-player-js-3.17.12-canary.0-d07f1c5.tgz#298a5cbb8c19525a3af4567a194fb26553f7d2f5"
integrity sha512-5kNulxLZI9kQHIDHKuLd6dfOQYd2pF6UBdzxV0bsPQN6ZF52yVrzpRJ/KJEftTSBAcLIG/dGdqhqFPzFR+MH0g==
dependencies:
"@playkit-js/playkit-js" "0.84.7-canary.0-cb0ba18"
"@playkit-js/playkit-js-dash" "1.37.0-canary.0-f849d47"
"@playkit-js/playkit-js-hls" "1.32.11"
"@playkit-js/playkit-js-providers" "2.40.4"
"@playkit-js/playkit-js-ui" "0.78.3-canary.0-dbecd05"
hls.js "1.4.11"
"@playkit-js/[email protected].16":
version "3.17.16"
resolved "https://registry.yarnpkg.com/@playkit-js/kaltura-player-js/-/kaltura-player-js-3.17.16.tgz#a93f54788765d77902dc572e10805117a8f87fb3"
integrity sha512-o6biPmY1OeIR4WnNQcWDXQOyu60FKDref3K5Y4D0dtARWoDSbF//H0D6xHAhUIJslYpf4a+eUSjUJPHdanm2jQ==
dependencies:
"@playkit-js/playkit-js" "0.84.9"
"@playkit-js/playkit-js-dash" "1.37.0"
"@playkit-js/playkit-js-hls" "1.32.12"
"@playkit-js/playkit-js-providers" "2.40.6"
"@playkit-js/playkit-js-ui" "0.79.2"
hls.js "^1.5.8"
shaka-player "4.7.0"

"@playkit-js/[email protected]":
Expand All @@ -1318,10 +1318,10 @@
"@playkit-js/playkit-js-ui" "^0.77.3"
"@playkit-js/ui-managers" "^1.3.11"

"@playkit-js/[email protected]-canary.0-f849d47":
version "1.37.0-canary.0-f849d47"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js-dash/-/playkit-js-dash-1.37.0-canary.0-f849d47.tgz#2ad4a4f96574707658a4854ac621e33df3663c90"
integrity sha512-ZULy7Sfq14VF2Pf7ey4VzWsuYsT8kTSZq5sBzxNnGiYF0Af++4fv4W54Kta91gqWFtOrHEG6Wz3mggHp19UCXg==
"@playkit-js/[email protected]":
version "1.37.0"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js-dash/-/playkit-js-dash-1.37.0.tgz#d189543f3084469061ac9a71660d0dbc3af48a01"
integrity sha512-7g28jlPJftJXQhssfhS7+uK2sb/PhgfGu5pR2GN+sk1evNhMHWHJj/utIyRqv6z5hjlLTUq50A51BWTFUL3/aQ==

"@playkit-js/[email protected]":
version "1.1.0-canary.0-60c49dc"
Expand All @@ -1331,12 +1331,17 @@
copyfiles "^2.4.1"
rimraf "^5.0.5"

"@playkit-js/[email protected].11":
version "1.32.11"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js-hls/-/playkit-js-hls-1.32.11.tgz#0d4d514750a660e9899d04e97482af6311355707"
integrity sha512-YWhFAYeBpONeENRQbmm6901FtkT4vwzu8O5mzrrty7TUGR3zXpBGszul1bngAZQWS6UZ5vpuvAuLSz+37BFUpg==
"@playkit-js/[email protected].12":
version "1.32.12"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js-hls/-/playkit-js-hls-1.32.12.tgz#be81df6a630f39d576c24e9321a03883ca53a2e8"
integrity sha512-RUndptRCGsMfpyvb1iGEYW9A1eFCztfQJTyv0RbuqZmjoYvOXps9KmNc/lyTjqO+kSw4KnOpSYhqsrrNSTzvgg==

"@playkit-js/[email protected]", "@playkit-js/playkit-js-providers@^2.40.4":
"@playkit-js/[email protected]":
version "2.40.6"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js-providers/-/playkit-js-providers-2.40.6.tgz#c0351f488c20633b8f6cadd2b5e5087d61ce83a0"
integrity sha512-j93/BZ1cVLRD0nH9MgplCkUjCNLW9d5HHW4NA37Oe5KPCix2omwVxX7XVOfOC/NaCvA7PlCaxXGXcxKRg5iqaA==

"@playkit-js/playkit-js-providers@^2.40.4":
version "2.40.4"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js-providers/-/playkit-js-providers-2.40.4.tgz#181651986ab484c202f0f7805bc301b6e11df6d5"
integrity sha512-nnBaWjNvPcg6jRyEsuNJrKK0HWaKm46onqXV/HBesbwxJT/u/l01h3oJl7VkUB6hmZOMQuWGg3/QCdvswwQsRg==
Expand All @@ -1351,10 +1356,10 @@
react-redux "7.2.1"
redux "4.0.5"

"@playkit-js/playkit-js-ui@0.78.3-canary.0-dbecd05":
version "0.78.3-canary.0-dbecd05"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js-ui/-/playkit-js-ui-0.78.3-canary.0-dbecd05.tgz#0cc229127251c2f473a0cc1c3b1ac864778bd1bb"
integrity sha512-R1RSPYREbvyPhnh9Lmtni3s7ylY5fUyz5vzouuJu+GImQ/MYV/78WB3dfJyzbeD+jMI0DAs2h0KsC86v59KKGA==
"@playkit-js/playkit-js-ui@0.79.2":
version "0.79.2"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js-ui/-/playkit-js-ui-0.79.2.tgz#7a77cb14c7286b4941a5a04be19bacc487b35d35"
integrity sha512-WkJ/YMuJbNgi7GuQxa8suhgVmXw/eYvPI3hxpdHzROtxkcHCH+dSiHO/Ys7ciYdsfMpNUiaFg6ijDNy8FiGUzw==
dependencies:
preact "10.4.6"
preact-i18n "2.0.0-preactx.2"
Expand All @@ -1371,10 +1376,10 @@
react-redux "^7.2.0"
redux "^4.0.5"

"@playkit-js/[email protected].7-canary.0-cb0ba18":
version "0.84.7-canary.0-cb0ba18"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js/-/playkit-js-0.84.7-canary.0-cb0ba18.tgz#0dffea3400ebf9a1cc0598d90fdd8c22d3c90bb9"
integrity sha512-mKszBVI5an6pyGunP6e7e6YBB4FPgpOeF0Yr6P/kkWeLbZ6X4reDu1YNsdtdhpSaFl9X7Ab+eXdcn1sYyu2cUA==
"@playkit-js/[email protected].9":
version "0.84.9"
resolved "https://registry.yarnpkg.com/@playkit-js/playkit-js/-/playkit-js-0.84.9.tgz#7c091e1f1a96539e06acb7381f8e76a10e9197ee"
integrity sha512-5BVFs9U/XA7835FmI7S8ERaz1S/a3pdaVKU2dUSgC8cVqv6J/BSTk4w63a/yXckM5mGqBPVzq8aTup1Ue+EdBg==
dependencies:
js-logger "^1.6.0"
ua-parser-js "^1.0.36"
Expand Down Expand Up @@ -4085,10 +4090,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==

hls.js@1.4.11:
version "1.4.11"
resolved "https://registry.yarnpkg.com/hls.js/-/hls.js-1.4.11.tgz#6ca2d7ab56f2725f27bb5f2e3c7982c6ec287118"
integrity sha512-rhPSUMACcIBbcUnwWnIcRgGXqJJt0xBRxvhzl99XpGHtnnLKjbczmmBmUuQueAQcbL3SdN7D5peAObR18VrhvQ==
hls.js@^1.5.8:
version "1.5.11"
resolved "https://registry.yarnpkg.com/hls.js/-/hls.js-1.5.11.tgz#3941347df454983859ae8c75fe19e8818719a826"
integrity sha512-q3We1izi2+qkOO+TvZdHv+dx6aFzdtk3xc1/Qesrvto4thLTT/x/1FK85c5h1qZE4MmMBNgKg+MIW8nxQfxwBw==

hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.2:
version "3.3.2"
Expand Down
Loading