Track buffering using JavaScript 3.x

IMPORTANT

The following instructions provide guidance for implementation across all 3.x SDKs. If you are implementing any previous versions of the SDK, you can download the Developers Guides here: Download SDKs.

Buffer tracking constants

Constant name Description    
BufferStart Constant for tracking Buffer Start event
BufferComplete Constant for tracking Buffer Complete event

Implement buffering

  1. Listen for the playback buffering events from media player, and on buffer start event notification, track buffering using the BufferStart event.

    _onBufferStart = function() {
        tracker.trackEvent(ADB.Media.Event.BufferStart);
    };
    
  2. On buffer complete notification from the media player, track the end of buffering using the BufferComplete event.

    _onBufferComplete = function() {
        tracker.trackEvent(ADB.Media.Event.BufferComplete);
    };
    

See the tracking scenario VOD playback with buffering for more information.

On this page

Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now