Package com.castlabs.android.player.models.hls

# 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 a media asset contained in an interstitial.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final int`
  `duration`
  Duration of the media asset in milliseconds.
  `final Uri`
  `uri`
  URI pointing to the media asset.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Asset(Uri uri, int duration)`
  Creates a new interstitial asset instance.

- ## 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
    URI pointing to the media asset.

  - ### duration

    public final int duration
    Duration of the media asset in milliseconds.

- ## Constructor Details

  - ### Asset

    public Asset(Uri uri, int duration)
    Creates a new interstitial asset instance.
    Parameters:
      `uri` - The URI of the asset.
      `duration` - Duration in milliseconds.