2.1.4 • Published 10 months ago

cloudinary-va-test v2.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

cloudinary-video-analytics

This package allows you to easily connect any Video Player with Cloudinary Video Analytics.

Usage

<!doctype html>
<html>
    <head>
        <title>My page</title>
    </head>
    <body>
      <video id="video-player" src="https://res.cloudinary.com/demo/video/upload/v1651840278/samples/cld-sample-video.mp4" />
    </body>
</html>
// simple example to run code when page loaded
import { connectCloudinaryAnalytics } from 'cloudinary-video-analytics';

const videoElement = document.getElementById('video-player');
const cloudinaryAnalytics = connectCloudinaryAnalytics(videoElement);

// needs to be called every time new video is loaded
cloudinaryAnalytics.startManuallyNewVideoTracking({
  cloudName: 'demo',
  publicId: 'cld-sample',
});

Metadata Props

Property nameTypeRequiredDescription
cloudNamestring:white_check_mark:Name of your cloud name on your Cloudinary account where your video analytics will be collected
publicIdstring:white_check_mark:Public ID of played video that all analytics will be connected with
2.1.2

10 months ago

2.1.1

10 months ago

2.0.2

10 months ago

2.1.4

10 months ago

2.1.3

10 months ago

2.1.0

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.0.4

11 months ago