Skip to content

Instantly share code, notes, and snippets.

@michael-riha
Created August 8, 2019 08:41
Show Gist options
  • Save michael-riha/f9b1ec0f0b03385887db1cceaa4d8589 to your computer and use it in GitHub Desktop.
Save michael-riha/f9b1ec0f0b03385887db1cceaa4d8589 to your computer and use it in GitHub Desktop.
This is an Snippet on how to change meta-data for videoJS-Adapter with Bitmovin Analytics
document.getElementById('change-source').onclick = function () {
analytics.sourceChange({
title: 'someVideoTitle',
videoId: 'video-1234'
});
player.src({
src: 'https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8',
type: 'application/x-mpegURL'
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment