Videojs - unique video id

STANDARD
PREMIUM
GOLD
GET ID

The Nuevo plugin allows you to set a unique ID for the current media file.A unique video ID is required when using the Nuevo plugin's resume option. Video ID is also required to identify video for media tracking events.A unique video ID is possible to set in several ways:

  1. As a video source tag parameter:
    Code snippet
    <video id="my_player" class="video-js vjs-fluid" preload playsiniline>
    <source src="//path-to-video-playlist.m3u8" type="application/x-mpegURL" video_id="your-unique-id">
    </video>
  2. When setting up a video source through JavaScript:
    Code snippet
    player.src({ src:"//path-to-video-playlist.m3u8" type:"application/x-mpegURL" video_id:"your-unique-id"});
  3. As the Nuevo plugin's option:
    Code snippet
    player.nuevo({ video_id: "your-unique-id", title: "video title" });
  4. To get the current video ID, use the following function:
    Code snippet
    var video_id = player.video_id();