Class VideoExperienceLoader

  • All Implemented Interfaces:

    
    public final class VideoExperienceLoader
    extends ExperienceLoader
                        

    Experience loader for handling video content in native ads. This loader processes VAST tags, validates video requirements, sets up video tracking, and inflates the media view for displaying video content.

    • 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
      ExperienceResult load() Loads the video experience and returns the result.
      • Methods inherited from class java.lang.Object

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

      • VideoExperienceLoader

        VideoExperienceLoader(NativeAdUnitComponent nativeAdUnitComponent, AdSessionManager adSessionManager)
        Parameters:
        nativeAdUnitComponent - The dependency injection component providing core dependencies.
        adSessionManager - The OM-SDK ad session manager for viewability tracking.
    • Method Detail

      • load

         ExperienceResult load()

        Loads the video experience and returns the result. Validates the media type and video configuration, parses VAST tag, and inflates the media view for video playback.

        Returns:

        ExperienceResult indicating success with media view and beacon data or failure with error code.