Class HlsInterstitial.Asset

java.lang.Object
com.castlabs.android.player.models.hls.HlsInterstitial.Asset
Enclosing class:
HlsInterstitial

public static final class HlsInterstitial.Asset extends Object
Represents an asset within an HLS interstitial. This class contains information about a specific media asset that is part of the interstitial.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The duration of the asset in milliseconds
    final Uri
    The URI of the asset
  • Constructor Summary

    Constructors
    Constructor
    Description
    Asset(Uri uri, int duration)
    Creates a new asset with the specified parameters.
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • uri

      public final Uri uri
      The URI of the asset
    • duration

      public final int duration
      The duration of the asset in milliseconds
  • Constructor Details

    • Asset

      public Asset(Uri uri, int duration)
      Creates a new asset with the specified parameters.
      Parameters:
      uri - The URI of the asset
      duration - The duration in milliseconds