Class VideoTelemetryHelper

  • All Implemented Interfaces:

    
    public final class VideoTelemetryHelper
    
                        

    A helper class for submitting telemetry events related to video ads.

    This class provides methods for submitting telemetry events for various video playback milestones, such as load start, load success, load failure, start, quartiles, and completion. It uses a MediaEvent to determine which event to submit and prevents duplicate submissions for certain events.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit fireTelemetryOnMediaEvent(MediaEvent mediaEvent) Fires the appropriate telemetry event based on the received MediaEvent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VideoTelemetryHelper

        VideoTelemetryHelper(AdContext adContext)
    • Method Detail

      • fireTelemetryOnMediaEvent

         final Unit fireTelemetryOnMediaEvent(MediaEvent mediaEvent)

        Fires the appropriate telemetry event based on the received MediaEvent.

        This method acts as an entry point for handling various media events and submitting the corresponding telemetry events.

        Parameters:
        mediaEvent - The MediaEvent that occurred.