A basic library to make it easy to add support for uploading single videos to Kaltura.
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.
- Metadata form validation
- Return details of new media entry to
index.render()
calls via callback - think we just need to return the ID of the new entry. - 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.' - Internationalisation
- Increase test coverage