Giter Club home page Giter Club logo

bitmovin-player-android-integrations-comscore's Introduction

BitmovinComScoreAnalytics

Getting started

Gradle

Add this to your top level build.gradle

allprojects {
    repositories {
		maven {
			url  'http://bitmovin.bintray.com/maven'
		}
	}
}

And this line to your main project build.gradle

dependencies {
    implementation 'com.bitmovin.player.integrations:comscoreanalytics:1.1.1'
}

Examples

Basic setup

How to setup ComScoreAnalytics for app lifecycle tracking. Do this once your application loads

ComScoreConfiguration comScoreConfiguration = new ComScoreConfiguration("YOUR_PUBLISHER_ID", "YOUR_PUBLISHER_SECRET", "YOUR APPLICATION NAME");
ComScoreAnalytics.start(comScoreConfiguration, getApplicationContext());

Once you have created a video player, you can track it via the ComScoreStreamingAnalytics object

//Create metadata using the builder
ComScoreMetadata comScoreMetadata = new ComScoreMetadataBuilder().setMediaType(ComScoreMediaType.LONG_FORM_ON_DEMAND)
                                                                 .setPublisherBrandName("ABC")
                                                                 .setProgramTitle("Modern Family")
                                                                 .setEpisodeTitle("Rash Decisions")
                                                                 .setEpisodeSeasonNumber("1")
                                                                 .setEpisodeNumber("2")
                                                                 .setContentGenre("Comedy")
                                                                 .setStationTitle("Hulu")
                                                                 .setCompleteEpisode(true)
                                                                 .build();

//Create ComScoreStreamingAnalytics 
comScoreStreamingAnalytics = new ComScoreAnalytics.createComScoreAnalytics(bitmovinPlayer, comScoreMetadata);

// Load a source
bitmovinPlayer.load(source)

// Unload a source in order to play and track something else
bitmovinPlayer.unload()

// Update metadata for your new source 
comScoreStreamignAnalytics.update(newMetadata)

//Load your new source 
bitmovinPlayer.load()

Author

Cory Zachman, [email protected]

License

BitmovinComscoreAnalytics is available under the MIT license. See the LICENSE file for more info.

bitmovin-player-android-integrations-comscore's People

Contributors

aneurinc avatar zachmanc 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.