Monitor Ooyala player | Mux
Monitor Ooyala player
Connect Mux Data to the Ooyala player to collect playback performance metrics. Use this guide when your web application plays video with the Ooyala player.
In this guide:
- Features
- 1 Install
ooyala-mux - 2 Initialize Mux Data
- 3 Make your data actionable
- 4 Changing the video
- 5 Advanced options
- Release notes
Mux Data collects playback performance metrics from the Ooyala player. Use this guide when your web application plays video with the Ooyala player and you want to monitor the playback experience of your viewers. You do not need Mux Video to use Mux Data.
Features
The following data can be collected by the Mux Data SDK when you use the Ooyala Player SDK, as described below.
Supported Features:
- Engagement metrics
- Quality of Experience Metrics
- Web metrics such as Player Startup Time, Page Load Time, etc
- Custom Dimensions
- Customizable Error Tracking
- Ads metrics
- Custom Beacon Domain
1 Install ooyala-mux
Include the Mux JavaScript SDK on every page of your web app that includes video.
// Include Mux SDK script here
2 Initialize Mux Data
Get your ENV_KEY from the Mux environments dashboard.
ENV_KEY is a client-side key used for Mux Data monitoring. These are not to be confused with API tokens which are created in the admin settings dashboard and meant to access the Mux API from a trusted server.
Call OO.player.create like you normally would. Call initOoyalaMux with the player reference in the onCreate callback.
// Initialize Ooyala Mux here
3 Make your data actionable
The only required field in the options that you pass into ooyala-mux is env_key. But without some metadata the metrics in your dashboard will lack the necessary information to take meaningful actions. Metadata allows you to search and filter on important fields in order to diagnose issues and optimize the playback experience for your end users.
Pass in metadata under the data on initialization.
// Pass metadata here
For more information, view Make your data actionable.
4 Changing the video
There are two cases where the underlying tracking of the video view need to be reset:
- New source: When you load a new source URL into an existing player.
- New program: When the program within a singular stream changes (such as a program change within a continuous live stream).
New source
If your application plays multiple videos back-to-back in the same video player, you need to signal when a new video starts to the Mux SDK. Examples of when this is needed are:
- The player advances to the next video in a playlist
- The user selects a different video to play
In order to signal the Mux SDK that a new view is starting, you will need to emit a videochange event, along with metadata about the new video. See metadata in Make your data actionable for the full list of video details you can provide.
// Emit videochange event here
New program
In some cases, you may have the program change within a stream, and you may want to track each program as a view on its own. An example of this is a live stream that streams multiple programs back to back, with no interruptions.
In this case, you emit a programchange event, including the updated metadata for the new program within the continuous stream.
// Emit programchange event here
5 Advanced options
Disable cookies
By default, Mux plugins for HTML5-based players use a cookie to track playback across subsequent page views in order to understand viewing sessions. This cookie includes information about the tracking of the viewer, such as an anonymized viewer ID that Mux generates for each user.
// Disable cookies
Over-ride 'do not track' behavior
By default, Mux plugins for HTML5-based players do not respect Do Not Track when set within browsers.
// Override do not track
Customize error tracking behavior
Errors are fatal
Errors tracked by mux are considered fatal meaning that they are the result of playback failures.
// Customize error tracking
Ads tracking with ooyala-mux
Mux has been tested with and supports Ooyala's google-ima-ads-manager. Configure these plugins as you would normally, and Mux will track ads automatically. No additional configuration is needed.
Customize beacon collection domain
If you have integrated a custom domain for Data collection, specify your custom domain by setting beaconCollectionDomain.
// Set custom domain here
Release notes
Current release
v4.12.29
- Update mux-embed to 5.18.2
Previous releases
v4.12.28
- Set viewer_connection_type, viewer_connection_low_data_mode with new networkchange event
- Updated dependency:
mux-embedto v5.18.0
- Updated dependency:
v4.12.27
- [chore] force upgrade of yarn to 4.12.0
- Updated dependency:
mux-embedto v5.17.10
- Updated dependency:
v4.12.26
- [chore] upgrade yarn version
- Updated dependency:
mux-embedto v5.17.9
- Updated dependency:
v4.12.25
- [chore] publish mux-embed first, then the rest
- Updated dependency:
mux-embedto v5.17.8
- Updated dependency:
v4.12.24
- fix workspace build issue
- Updated dependency:
mux-embedto v5.17.7
- Updated dependency:
v4.12.23
- [chore] fix release pipeline
- Updated dependency:
mux-embedto v5.17.6
- Updated dependency:
v4.12.22
- fix issue where playback_mode may not have appeared on all events
- Updated dependency:
mux-embedto v5.17.5
- Updated dependency:
v4.12.21
- [chore] fix npm publish
- Updated dependency:
mux-embedto v5.17.4
- Updated dependency:
v4.12.20
- [chore] fix deploy pipeline
- Updated dependency:
mux-embedto v5.17.3
- Updated dependency:
v4.12.19
- [chore] update build process to github actions
- Updated dependency:
mux-embedto v5.17.2
- Updated dependency:
v4.12.18
- fix issue where playing time might accumulate for paused players
- Updated dependency:
mux-embedto v5.17.1
- Updated dependency:
v4.12.17
- add compatibility for dash.js 5
- Updated dependency:
mux-embedto v5.17.0
- Updated dependency:
v4.12.16
- Update parsing of initial value for player_playback_mode
- Updated dependency:
mux-embedto v5.16.1
- Updated dependency:
v4.12.15
- Add Playback Range Tracker for new engagement metrics
- Updated dependency:
mux-embedto v5.16.0
- Updated dependency:
v4.12.14
- Automatically detect playback mode changes for HTML 5 Video
- Updated dependency:
mux-embedto v5.15.0
- Updated dependency:
v4.12.13
- Emit a renditionchange event at the start of views to enable updated rendition tracking.
- Updated dependency:
mux-embedto v5.14.0
- Updated dependency:
v4.12.12
- Add ad type metadata to Ad Events
- Add support for the upcoming Playback Mode changes:
- Updated dependency:
mux-embedto v5.13.0
- Updated dependency:
v4.12.11
- SDKs will no longer immediately send error events that are flagged as warnings. Fatal errors will still immediately be sent.
- Updated dependency:
mux-embedto v5.12.0
- Updated dependency:
v4.12.10
- Allow dev to specify page starting load and page finished loading times to calculate Page Load Time
- Updated dependency:
mux-embedto v5.11.0
- Updated dependency:
v4.12.9
- Adds support for cdnchange events
- Updated dependency:
mux-embedto v5.10.0
- Updated dependency:
v4.12.8
- Submit Aggregate Startup Time when autoplay is set
- Updated dependency:
mux-embedto v5.9.1
- Updated dependency:
v4.12.7
- Update
mux-embedto v5.9.0
v4.12.6
- Update
mux-embedto v5.8.3
v4.12.5
- Update
mux-embedto v5.8.2
v4.12.4
- Update
mux-embedto v5.8.1
v4.12.3
- Update
mux-embedto v5.8.0
v4.12.2
- Update
mux-embedto v5.7.0
v4.12.1
- Update
mux-embedto v5.6.0
v4.12.0
Update mechanism for generating unique IDs, used for
view_idand othersUpdate
mux-embedto v5.5.0
v4.11.10
- [chore] internal build process fix (no functional changes)
- Update
mux-embedto v5.4.3
v4.11.9
- Update
mux-embedto v5.4.2
v4.11.8
- Update
mux-embedto v5.4.1
v4.11.7
- Update
mux-embedto v5.4.0
v4.11.6
- Update
mux-embedto v5.3.3
v4.11.5
- Update
mux-embedto v5.3.2
v4.11.4
- Update
mux-embedto v5.3.1
v4.11.3
- Update
mux-embedto v5.3.0
v4.11.2
- Update
mux-embedto v5.2.1
v4.11.1
- Update
mux-embedto v5.2.0
v4.11.0
Target ES5 for bundles and validate bundles are ES5
Update
mux-embedto v5.1.0
v4.10.5
- Update
mux-embedto v5.0.0
v4.10.4
- Update
mux-embedto v4.30.0
v4.10.3
- Update
mux-embedto v4.29.0
v4.10.2
- Update
mux-embedto v4.28.1
v4.10.1
- Update
mux-embedto v4.28.0
v4.10.0
fix an issue where seek latency could be unexpectedly large
fix an issue where seek latency does not include time at end of a view
Update
mux-embedto v4.27.0
v4.9.3
- Update
mux-embedto v4.26.0
v4.9.2
- Update
mux-embedto v4.25.1
v4.9.1
- Update
mux-embedto v4.25.0
v4.9.0
Fix an issue where beacons over a certain size could get hung and not be sent
Update
mux-embedto v4.24.0
v4.8.0
Fix an issue where tracking rebuffering can get into an infinite loop
Update
mux-embedto v4.23.0
v4.7.5
- Update
mux-embedto v4.22.0
v4.7.4
- Update
mux-embedto v4.21.0
v4.7.3
- Update
mux-embedto v4.20.0
v4.7.2
- Update
mux-embedto v4.19.0
v4.7.1
- Update
mux-embedto v4.18.0
v4.7.0
Support
player_error_contextinerrorTranslatorUpdate
mux-embedto v4.17.0
v4.6.0
Adds support for new and updated fields:
renditionchange, error, DRM type, dropped frames, and new custom fieldsUpdate
mux-embedto v4.16.0
v4.5.0
Expose
utilson SDK initialization function to exposeutils.now()forplayer_init_timeUpdate
mux-embedto v4.15.0
v4.4.5
- Update
mux-embedto v4.14.0
v4.4.4
- Update
mux-embedto v4.13.4
v4.4.3
- Update
mux-embedto v4.13.3
v4.4.2
- Update
mux-embedto v4.13.2
v4.4.1
- Fixes an issue with accessing the global object
- Update
mux-embedto v4.13.1
v4.4.0
Upgraded internal webpack version
Update
mux-embedto v4.13.0
v4.3.14
- Publish package to NPM
v4.3.13
- Update
mux-embedto v4.12.1
v4.3.12
- Update
mux-embedto v4.12.0
v4.3.11
- Update
mux-embedto v4.11.0
v4.3.10
- Update
mux-embedto v4.10.0
v4.3.9
- Update
mux-embedto v4.9.4
v4.3.8
- Update
mux-embedto v4.9.3
v4.3.7
- Update
mux-embedto v4.9.2
v4.3.6
- Update
mux-embedto v4.9.1
v4.3.5
- Update
mux-embedto v4.9.0
v4.3.4
- Update
mux-embedto v4.8.0
v4.3.3
- Update
mux-embedto v4.7.0
v4.3.2
- Update
mux-embedto v4.6.2
v4.3.1
- Update
mux-embedto v4.6.1
v4.3.0
- Bump mux-embed to 4.6.0
v4.2.0
- Update
mux-embedto v4.2.0 - Fix an issue where views that resulted from
programchangemay not have been tracked correctly - Fix an issue where if
destroywas called multiple times, it would raise an exception
v4.1.0
- Update
mux-embedto v4.1.1 - Fix an issue where
player_remote_playedwould not be reported correctly
v4.0.0
- Update
mux-embedto v4.0.0 - Support server-side device detection
v3.0.0
- bump
mux-embedto 3.0.0