GithubHelp home page GithubHelp logo

isabella232 / video-theplatform-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newrelic/video-theplatform-js

0.0 0.0 0.0 62.13 MB

New relic tracker for Theplatform player

License: Apache License 2.0

Shell 0.87% JavaScript 99.06% Dockerfile 0.07%

video-theplatform-js's Introduction

Community Project header

New Relic thePlatform JS Tracker

The New Relic thePlatform JS tracker instruments thePlatform HTML5 player.

Build

Install dependencies:

$ npm install

And build:

$ npm run build:dev

Or if you need a production build:

$ npm run build

Usage

If dist folder is not included, run npm i && npm run build to build it.

You have 2 options:

Standard Way

Load scripts inside dist folder into your page.

nrvideo.Core.addTracker(new nrvideo.ThePlatformTracker(player))

Plugin Ecosystem

Alternatively, you can use the Platform official ecosystem:

<div id="player" class="tpPlayer"
  tp:plugin0="type=tpplayer|URL=../dist/newrelic-video-theplatform.min.js|priority=1"
>

Defining Scope

If you want to use scope, you can pass it as an option:

nrvideo.Core.addTracker(new nrvideo.ThePlatformTracker(player, {
  scope: 'SCOPE'
}))

or you can use theplatform plugin space:

tp:plugin0="type=tpplayer|URL=../dist/newrelic-video-theplatform.min.js|priority=1|scope=SCOPE"

Examples

Check out the samples folder for complete usage examples.

Known Limitations

Due to the information exposed by player provider, this tracker may not be able to report:

  • AD_QUARTILE.
  • AD_CLICK.
  • AD_RENDITION_CHANGE.
  • BUFFER only available for HLS (see OnMediaBufferStart on The Platform docs).

Open source license

This project is distributed under the Apache 2 license.

Support

New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR DEDICATED SUPPORT. Issues and contributions should be reported to the project here on GitHub.

We encourage you to bring your experiences and questions to the Explorers Hub where our community members collaborate on solutions and new ideas.

Community

New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub. You can find this project's topic/threads here:

https://discuss.newrelic.com/t/theplatform-js-tracker/100302

Issues / enhancement requests

Issues and enhancement requests can be submitted in the Issues tab of this repository. Please search for and review the existing open issues before submitting a new issue.

Contributing

Contributions are encouraged! If you submit an enhancement request, we'll invite you to contribute the change yourself. Please review our Contributors Guide.

Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. If you'd like to execute our corporate CLA, or if you have any questions, please drop us an email at [email protected].

video-theplatform-js's People

Contributors

adwetzelnr avatar asllop avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.