Class SourceDescription

  • All Implemented Interfaces:

    
    public final class SourceDescription
    
                        

    A Source Description.

    • This contains the settings to be applied for a source.

    • Method Detail

      • getSources

         final List<TypedSource> getSources()

        List of TypedSources that represent the available sources in this SourceDescription. (NonNull)

        • The first element of the list will initially be used as the player’s source.

        • When that source is unavailable, the player will fall back to the other elements of this list.

      • getAds

         final List<AdDescription> getAds()

        List of AdDescriptions of the source. (NonNull)

        • All valid and supported advertisement files will be cued for playback in the player following the provided advertisement specification.

        • Each ad in the list should be described as an AdDescription.

      • getPoster

         final String getPoster()

        The poster image url of this source description. (Nullable)

        • A placeholder for the content between the time that the content has loaded and the user presses play.

      • getTimeServer

         final String getTimeServer()

        The URL of the time server. (Nullable)

        • The time server should return time in ISO-8601 format.

        • Applies for all sources.

      • getStreamType

         final StreamType getStreamType()

        The stream type. (Nullable)

        • This is used as a hint for the player to show the correct UI while loading the stream, for example to avoid showing a seek bar when the stream is known in advance to be live.

        • This is required for live and DVR streams when casting to Chromecast, in order for the Chromecast receiver to show the correct UI.

        Since:

        v10.2.0