PlayKit JS Live Transcript is written in [ECMAScript6], statically analysed using [Typescript] and transpiled in ECMAScript5 using [Babel].
npm install @playkit-js/live-transcriptPlayKit JS Live Transcript is written in [ECMAScript6], statically analysed using [Typescript] and transpiled in ECMAScript5 using [Babel].
[typescript]: https://www.typescriptlang.org/
[ecmascript6]: https://github.com/ericdouglas/ES6-Learning#articles--tutorials
[babel]: https://babeljs.io
The plugin requires [Kaltura Player] to be loaded first.
[kaltura player]: https://github.com/kaltura/kaltura-player-js
First, clone and run [yarn] to install dependencies:
[yarn]: https://yarnpkg.com/lang/en/
```
git clone https://github.com/Kaltura-PS/playkit-js-live-transcript.git
cd playkit-js-live-transcript
yarn install
Then, build the plugin
`javascript`
yarn run build
Finally, add the bundle as a script tag in your page, and initialize the player (see demo for an example)
`html`
Live Transcript plugin configuration can been found here:
Live Transcript plugin dependencies can been found here:
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the AGPL-3.0 License - see the LICENSE.md file for details
Run dev server: yarn dev;yarn release
Bump version: ;
#### Configuration Structure
`js`
//Default configuration
liveTranscript = {};
//Plugin params
liveTranscript = {
expandMode?: string, // optional
expandOnFirstPlay?: boolean, // optional
showTime?: boolean, // optional
position?: string, // optional
scrollOffset?: number // optional
searchDebounceTimeout?: number // optional
searchNextPrevDebounceTimeout?: number // optional
downloadDisabled?: boolean // optional
printDisabled?: boolean // optional
}
##
> ### config.expandMode
>
> ##### Type: stringalongside
>
> ##### Default: ;(‘alongside', ‘hidden’, 'over’)
>
##
> ### config.expandOnFirstPlay
>
> ##### Type: booleantrue
>
> ##### Default:
>
##
> ### config.showTime
>
> ##### Type: booleantrue
>
> ##### Default:
>
##
> ### config.position
>
> ##### Type: stringbottom
>
> ##### Default: ;(‘left’, ‘right', ‘top’, 'bottom’)
>
##
> ### config.scrollOffset
>
> ##### Type: number0
>
> ##### Default:
>
##
> ### config.searchDebounceTimeout
>
> ##### Type: number250
>
> ##### Default:
>
##
> ### config.searchNextPrevDebounceTimeout
>
> ##### Type: number100
>
> ##### Default:
>
##
> ### config.downloadDisabled
>
> ##### Type: booleanfalse
>
> ##### Default:
>
##
> ### config.printDisabled
>
> ##### Type: booleanfalse
>
> ##### Default:
>
Plugin dependencies:
Cue Points
UI Managers
Node version: up to 14+
If nvm installed: nvm use change version of current terminal to required.
Install dependencies with npm install --target_arch=x64` set target arch for running it through Rosetta (requires Rosetta installation).