This widget allows streaming videos from sources such as HLS streams, on-demand videos (such as MP4, MKV, MOV) from URL and embedded YouTube, Vimeo, etc. videos. In addition, on-demand videos can be synchronized with device measurements representing video timestamp in seconds. Please note that links must be HTTPS and have Cross-Origin access enabled.
⚠️ This project is no longer under development. Please use cumulocity-video-widget-plugin for Application Builder >=2.x.x and Cumulocity >=1016.x.x⚠️
- Download the latest
cumulocity-video-widget-{version}.zip
file from the Releases section. - Make sure you have Application Builder app installed.
- Open a dashboard.
- Click
more...
. - Select
Install Widget
and follow the instructions.
- Make sure you have successfully installed the widget.
- Click on
Add widget
. - Choose
Video
widget. Title
is the title of widget. Provide a relevant name. You may choose to hide this. Go toAppearance
tab and chooseHidden
underWidget header style
.Target assets or devices
is to select the device. Only select device if you need to synchronize video timestamp with device measurements.Upload playlist
is to upload a playlist file. Only .m3u playlist file is supported.Source type
is whether the video is streamed, on-demand or embedded.Title
is a name for the video to appear in playlist.URL
is the url of the video.Delete icon
is to delete a source from the list. Only visible when there more than one source.Add source
is to add a new source to the list.Playlist & buttons position
allows to hide the playlist and buttons or show it on top or bottom of the video.Autoplay
is whether video should start playing automatically after page load.Default source
is the video that will be played by default on page load.Loop
is whether the video needs to be replayed. It is only applicable if the default source is of type on-demand.Measurement
is the device measurements coming in seconds to which video timestamp needs to be synchornized. It is only applicable if the default source is of type on-demand.- Click
Save
to add the widget on the dashboard. - In case you see unexpected results on the widget, refer to browser console to see if there are error logs.
- Clone the repository on local machine using
git clone https://github.com/SoftwareAG/cumulocity-video-widget.git
. - Run
npm install
to download the module dependencies. - Install c8ycli
npm install -g @c8y/cli
if not already. - Run
c8ycli server -u https://your_tenant_url
to start the server. - Go to
http://localhost:9000/apps/cockpit/
in the browser to view and test your changes. - (Optional) push the changes back to this repository.
- Finish the development and testing on your local machine.
- Run
gulp
to start the build process. Runnpm install -g gulp
to install gulp if not already. - Use
cumulocity-video-widget-{version}.zip
file in thedist
folder as a distribution.
These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
For more information you can Ask a Question in the Tech Community Forums.
You can find additional information in the Software AG Tech Community.