@playkit-js/video-ended-marker v1.0.3
playkit-js-video-ended-marker
playkit-js-video-ended-marker is a kaltura player plugin which logs an arbitrary value to the console.
10 is the default value, you can change it using the textToLog config of this plugin.
It relies on kaltura player core API for managing UI features.
playkit-js-video-ended-marker is written in ECMAScript6 and TypeScript (strongly typed superset of ES6), and transpiled in ECMAScript5 using Babel and the TypeScript compiler.
Webpack is used to build the distro bundle and serve the local development environment.
Plugin Config
plugins: {
videoEndedMarker: {
textToLog: '10' // default value is 10.
}
}Features
Getting started with development
# First, checkout the repository and install the required dependencies
git clone https://github.com/Kaltura-PS/playkit-js-video-ended-marker.git
# Navigate to the repo dir
cd playkit-js-video-ended-marker
# Run dev-server for demo page (recompiles on file-watch, and write to actual dist fs artifacts)
yarn
yarn build
yarn dev
# Before submitting a PR - Run the pre commit command
npm run pre:commit
# this command will run:
# 1. types check
# 2. lint check
# 3. generate/update types
# 4. generate/update docsThe dev server will host files on port 8000. Once started, the demo can be found running at http://localhost:8000/.
Before submitting a PR, please see our contribution guidelines.
Linter (ESlint)
Run linter:
npm run lint:checkRun linter with auto-fix mode:
yarn run lint:fixFormatting Code
Run prettier to format code
yarn run prettier:fixType Check
Run type-check to verify TypeScript types
yarn run types:checkAutomated tests (Mocha/Karma)
Run all tests at once:
yarn testRun unit tests in watch mode:
yarn run test:watch2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago