A basic library to make it easy to add support for uploading single videos to Kaltura.
In the example
folder there is an example of how to use the module. There are the following key
parts:
- Import
render
from the module; - Import the
styles.css
from the module; and - Call
render
against a target DOM element with your Kaltura details.
For some reason, kaltura have stopped publishing their kaltura-typescript-client
to NPM. It seems
the recommended method is to download the latest release from
https://github.com/kaltura/KalturaGeneratedAPIClientsTypescript and then follow the instructions
in the project's
README.md.
This basically involves building a local copy and dropping the resultant archive into your repository. This is needed - rather than simply rebuilding on each install/clone - due to timestamps in version numbers and elsewhere resulting in difficulties in aiming for reproducible builds which would pass NPM package-lock.json hash checks.
After much battling with this (and NPM's preinstall
script which does not occur before
install
) the install-kaltura-client.sh
script codifies this process should anyone want to easily
update in the future.
The script downloads and builds the client, placing the resultant distributable in the root of the
project (not the slightly ugly tgz
file sitting there). Then it npm install
s it resulting in
updated package.json
and package-lock.json
.
If you wish to update to a newer version then modify filenames and URLs in the script as needed, and run it. After that make sure you:
- remove the old
tgz
file from git; - add the new
tgz
file to git; and - commit the changes to
package.json
andpackage-lock.json
The Kaltura libraries seem to mainly be AGPLv3 which is at odds with the Apereo Practices on Third-Party Licenses. Hence, this module is stand-alone.
- Address warning : 'Notice! Your application bundle the whole package of kaltura-xxx-client
(either rxjs/ngx/typescript), please refer to the library
readme.md
to reduce app bundle size.' (This has been mostly addressed, however more work is required if desired.) - Internationalisation
- Increase test coverage