muxinc / mux-stats-sdk-exoplayer

Monitors an ExoPlayer instance and reports player analytics to Mux Data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mux Stats SDK for ExoPlayer

This is the Mux wrapper around ExoPlayer, built on top of Mux's core Java library, providing Mux Data performance analytics for applications utilizing Google's ExoPlayer.

Usage

See full integration instructions here: https://docs.mux.com/guides/data/monitor-exoplayer

Add our maven repository

repositories {
  maven {
    url "https://muxinc.jfrog.io/artifactory/default-maven-release-local"
  }
}

Add a dependency compatible with your version of ExoPlayer. The full list of supported versions can be found here

api 'com.mux.stats.sdk.muxstats:MuxExoPlayer_(ExoPlayer SDK version with underscores):(Mux SDK version)'

Monitor your ExoPlayer

muxStatsExoPlayer = exoPlayer.monitorWithMuxData(
      context = requireContext(),
      envKey = "YOUR_ENV_KEY_HERE",
      playerView = playerView,
      customerData = customerData
    )

For more information, check out the integration guide

Contributing

The code in this repo conforms to the Google Java Style Guide. Run the reformatter on files before committing.

The code was formatted in Android Studio/IntelliJ using the Google Java Style for IntelliJ . The style can be installed via the Java-style section of the IDE preferences (Editor -> Code Style - >Java).

Documentation

See our docs for more information.

About

Monitors an ExoPlayer instance and reports player analytics to Mux Data

License:Apache License 2.0


Languages

Language:Java 76.9%Language:Kotlin 22.7%Language:Shell 0.4%