@playkit-js/transcript 2.1.5-canary.27-d3cdc03 → 2.1.5-canary.30-eb358ab

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/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [2.1.5-canary.27-d3cdc03](https://github.com/kaltura/playkit-js-transcript/compare/v2.1.4...v2.1.5-canary.27-d3cdc03) (2022-08-30)
5
+ ### [2.1.5-canary.30-eb358ab](https://github.com/kaltura/playkit-js-transcript/compare/v2.1.4...v2.1.5-canary.30-eb358ab) (2022-09-13)
6
6
 
7
7
 
8
8
  ### Bug Fixes
@@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file. See [standa
16
16
  * **FEV-1362:** resolve race condition between API call and FirstPlaying event ([#103](https://github.com/kaltura/playkit-js-transcript/issues/103)) ([e28422e](https://github.com/kaltura/playkit-js-transcript/commit/e28422ef5822aee23f193e9f9ddd49ad49195a1b))
17
17
  * **FEV-1362:** use 1st language from list if captions switched to "off" ([a954dce](https://github.com/kaltura/playkit-js-transcript/commit/a954dcefa22660e29ef5e68a2384d01859436133))
18
18
  * **FEV-1363:** disable transcript plugin for live entries ([1ea40a3](https://github.com/kaltura/playkit-js-transcript/commit/1ea40a3f23c181d42e7cce84183c22b64fe457e2))
19
+ * **FEV-1419:** register to player ready event instead of plugin ready event ([#106](https://github.com/kaltura/playkit-js-transcript/issues/106)) ([8163cc8](https://github.com/kaltura/playkit-js-transcript/commit/8163cc89e8868a2c5eb2e50c89dd167165a75940))
19
20
 
20
21
  ### [2.1.4](https://github.com/kaltura/playkit-js-transcript/compare/v2.1.3...v2.1.4) (2022-01-19)
21
22
 
package/README.md CHANGED
@@ -41,6 +41,10 @@ Finally, add the bundle as a script tag in your page, and initialize the player
41
41
  ```html
42
42
  <script type="text/javascript" src="/PATH/TO/FILE/kaltura-player.js"></script>
43
43
  <!--Kaltura player-->
44
+ <script type="text/javascript" src="/PATH/TO/FILE/playkit-kaltura-cuepoints.js"></script>
45
+ <!--PlayKit cuepoints plugin-->
46
+ <script type="text/javascript" src="/PATH/TO/FILE/playkit-ui-managers.js"></script>
47
+ <!--PlayKit ui-managers plugin-->
44
48
  <script type="text/javascript" src="/PATH/TO/FILE/playkit-transcript.js"></script>
45
49
  <!--PlayKit transcript plugin-->
46
50
  <div id="player-placeholder" style="height:360px; width:640px">
@@ -50,8 +54,9 @@ Finally, add the bundle as a script tag in your page, and initialize the player
50
54
  ...
51
55
  targetId: 'player-placeholder',
52
56
  plugins: {
53
- transcript: { ... },
54
- kalturaCuepoints: {}
57
+ transcript: { ... },
58
+ uiManagers: { ... },
59
+ kalturaCuepoints: { ... },
55
60
  }
56
61
  ...
57
62
  };
@@ -63,25 +68,13 @@ Finally, add the bundle as a script tag in your page, and initialize the player
63
68
 
64
69
  ## Documentation
65
70
 
66
- TBD
71
+ Transcript plugin configuration can been found here:
67
72
 
68
- ## Running the tests
73
+ - **[Configuration](#configuration)**
69
74
 
70
- Tests can be run locally via [Karma], which will run on Chrome, Firefox and Safari
75
+ Transcript plugin dependencies can been found here:
71
76
 
72
- [karma]: https://karma-runner.github.io/1.0/index.html
73
-
74
- ```
75
- yarn run test
76
- ```
77
-
78
- You can test individual browsers:
79
-
80
- ```
81
- yarn run test:chrome
82
- yarn run test:firefox
83
- yarn run test:safari
84
- ```
77
+ - **[Dependencies](#dependencies)**
85
78
 
86
79
  ### And coding style tests
87
80
 
@@ -91,10 +84,6 @@ See [ESLint config](.eslintrc.json) for full configuration.
91
84
 
92
85
  We also use [.editorconfig](.editorconfig) to maintain consistent coding styles and settings, please make sure you comply with the styling.
93
86
 
94
- ## Compatibility
95
-
96
- TBD
97
-
98
87
  ## Contributing
99
88
 
100
89
  Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.
@@ -109,20 +98,121 @@ This project is licensed under the AGPL-3.0 License - see the [LICENSE.md](LICEN
109
98
 
110
99
  ## Commands
111
100
 
112
- Run dev server: `npm run serve`;<br/>
113
- Update contrib: `npm run infra:latest`;<br/>
114
- Bump version: `npm run deploy:prepare`;<br/>
101
+ Run dev server: `yarn dev`;<br/>
102
+ Bump version: `yarn release`;<br/>
115
103
 
104
+ <a name="configuration"></a>
116
105
  ## Configuration
117
106
 
118
- Plugin configuration:<br/> > `expandOnFirstPlay`: boolean - if plugin should automatically opens on first play (default true);<br/> > `forceChaptersThumb`: boolean - force to use chapters thumbnails (default false);<br/> > `expandMode`: string - expand mode of kitchensink (AlongSideTheVideo|OverTheVideo, default "AlongSideTheVideo");<br/> > `userRole`: string - use session userId as identificator of user (anonymousRole|unmoderatedAdminRole, default "anonymousRole");<br/> > `itemsOrder`: object< string, number > - define order of Tabs (min value at the left) and Items inside group (min value at the top).<br/> itemsOrder also uses as tabs filter (all items that not included in "itemsOrder" object will be filtered out) (default:
119
- ` { "All": 0, "Chapter": 1, "Slide": 2, "Hotspot": 3, "AnswerOnAir": 4, } ); `
120
-
121
- ## Troubleshooting
107
+ #### Configuration Structure
108
+
109
+ ```js
110
+ //Default configuration
111
+ "transcript" = {};
112
+ //Plugin params
113
+ "transcript" = {
114
+ expandMode?: string, // optional
115
+ expandOnFirstPlay?: boolean, // optional
116
+ showTime?: boolean, // optional
117
+ position?: string, // optional
118
+ scrollOffset?: number // optional
119
+ searchDebounceTimeout?: number // optional
120
+ searchNextPrevDebounceTimeout?: number // optional
121
+ downloadDisabled?: boolean // optional
122
+ printDisabled?: boolean // optional
123
+ }
124
+ ```
125
+ ##
126
+
127
+ > ### config.expandMode
128
+ >
129
+ > ##### Type: `string`
130
+ >
131
+ > ##### Default: `alongside`;(‘alongside', ‘hidden’, 'over’)
132
+ >
133
+
134
+ ##
135
+
136
+ > ### config.expandOnFirstPlay
137
+ >
138
+ > ##### Type: `boolean`
139
+ >
140
+ > ##### Default: `true`
141
+ >
142
+
143
+ ##
144
+
145
+ > ### config.showTime
146
+ >
147
+ > ##### Type: `boolean`
148
+ >
149
+ > ##### Default: `true`
150
+ >
151
+
152
+ ##
153
+
154
+ > ### config.position
155
+ >
156
+ > ##### Type: `string`
157
+ >
158
+ > ##### Default: `bottom`;(‘left’, ‘right', ‘top’, 'bottom’)
159
+ >
160
+
161
+ ##
162
+
163
+ > ### config.scrollOffset
164
+ >
165
+ > ##### Type: `number`
166
+ >
167
+ > ##### Default: `0`
168
+ >
169
+
170
+ ##
171
+
172
+ > ### config.searchDebounceTimeout
173
+ >
174
+ > ##### Type: `number`
175
+ >
176
+ > ##### Default: `250`
177
+ >
178
+
179
+ ##
180
+
181
+ > ### config.searchNextPrevDebounceTimeout
182
+ >
183
+ > ##### Type: `number`
184
+ >
185
+ > ##### Default: `100`
186
+ >
187
+
188
+ ##
189
+
190
+ > ### config.downloadDisabled
191
+ >
192
+ > ##### Type: `boolean`
193
+ >
194
+ > ##### Default: `false`
195
+ >
196
+
197
+ ##
198
+
199
+ > ### config.printDisabled
200
+ >
201
+ > ##### Type: `boolean`
202
+ >
203
+ > ##### Default: `false`
204
+ >
205
+
206
+ <a name="dependencies"></a>
207
+ ## Dependencies
208
+
209
+ Plugin dependencies:<br/>
210
+ <a href="https://github.com/kaltura/playkit-js-kaltura-cuepoints">Cue Points</a><br/>
211
+ <a href="https://github.com/kaltura/playkit-js-ui-managers">UI Managers</a>
122
212
 
123
213
  ### Dev env
124
214
 
125
- Node version: up to 14.18.1<br/>
215
+ Node version: up to 14+<br/>
126
216
  If nvm installed: `nvm use` change version of current terminal to required.<br/>
127
217
 
128
218
  ### ARM Architecture support