2.1.4 • Published 2 years ago

cloudinary-va-test v2.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.4

2 years ago