com.bitmovin.player.api.offline
OfflineSourceConfig
open class OfflineSourceConfig(url: String, type: SourceType, val drmId: ByteArray?, cacheDirectory: File, trackStateFile: File?, val isRestrictToOffline: Boolean, resourceIdentifierCallback: ResourceIdentifierCallback? = null) : SourceConfig
Represents the offline version of a SourceConfig. Altering this object could result in undefined behaviour.
Constructors
| OfflineSourceConfig | constructor(url: String, type: SourceType, drmId: ByteArray?, cacheDirectory: File, trackStateFile: File?, isRestrictToOffline: Boolean, resourceIdentifierCallback: ResourceIdentifierCallback? = null) |
Types
| Name | Summary |
|---|---|
| CREATOR | object CREATOR : Parcelable.Creator<OfflineSourceConfig> |
Properties
| Name | Summary |
|---|---|
| adaptationConfig | var adaptationConfig: SourceAdaptationConfig Configures the adaptation logic. |
| audioCodecPriority | var audioCodecPriority: List<String> The audio codec priority for the Source. First index has the highest priority. |
| cmcdConfig | var cmcdConfig: CmcdConfig Configures Common Media Client Data (CMCD) for this Source. |
| dashSource | val The current DASHSource. |
| description | var description: String? The descriptions of the Source. |
| drmConfig | var drmConfig: DrmConfig? The current DrmConfig or null. |
| drmConfigs | val |
| drmId | val drmId: ByteArray? |
| hlsSource | val The current HLSSource. |
| isPosterPersistent | var isPosterPersistent: Boolean Whether the poster is persistent. |
| isRestrictToOffline | val isRestrictToOffline: Boolean If the playback is restricted to offline data only. |
| labelingConfig | var labelingConfig: LabelingConfig The LabelingConfig for the Source. |
| liveConfig | var liveConfig: SourceLiveConfig? The SourceLiveConfig for the Source. Ignored if the Source is not a live stream. |
| metadata | var metadata: Map<String, String>? The optional custom metadata. Also sent to the cast receiver when loading the Source. |
| networkConfig | var networkConfig: SourceNetworkConfig Configures network functionalities. |
| options | var options: SourceOptions The additional SourceOptions for the Source. |
| posterSource | var posterSource: String? The HTTP or HTTPS URL pointing to the poster image or an asset file name for AssetManager.open. |
| preferredAudioLanguages | var preferredAudioLanguages: List<String> The preferred audio languages for the Source as a priority list of language codes (e.g. ["de", "en"]). First index has the highest priority. |
| progressiveSource | val The current ProgressiveSource. |
| smoothSource | val The current SmoothSource. |
| subtitleTracks | var subtitleTracks: List<SubtitleTrack> A list of additional SubtitleTracks available for the Source. |
| thumbnailTrack | var thumbnailTrack: ThumbnailTrack? The current ThumbnailTrack or null. |
| title | var title: String? The title of the Source. |
| type | val type: SourceType The SourceType of the Source. |
| url | val url: String The URL pointing to the media stream with the specified type. |
| videoCodecPriority | var videoCodecPriority: List<String> The video codec priority for the Source. First index has the highest priority. |
| vrConfig | var vrConfig: VrConfig The current VrConfig. |
Functions
| Name | Summary |
|---|---|
| addDrmConfig | fun fun Sets a DrmConfig to this SourceConfig. Returns the DrmConfig that was set on the SourceConfig. |
| addSubtitleTrack | fun addSubtitleTrack(subtitleTrack: SubtitleTrack): SubtitleTrack Adds the provided SubtitleTrack to this SourceConfig. Returns the SubtitleTrack that was added. fun Generates a SubtitleTrack with the provided url and adds it to this SourceConfig. Returns the SubtitleTrack that was added. fun fun Generates a SubtitleTrack with the provided parameter and adds it to this SourceConfig. |
| describeContents | abstract fun describeContents(): Int |
| getDrmConfig | fun Returns the DrmConfig if the uuid matches the config in this SourceConfig. |
| setPosterImage | fun setPosterImage(url: String, keepPersistent: Boolean = false) Sets the poster image and its persistent state for this SourceConfig. |
| setThumbnailTrack | fun Generates a ThumbnailTrack with the provided url and sets it on this SourceConfig. |
| toString | open override fun toString(): String |
| writeToParcel | open override fun writeToParcel(dest: Parcel, flags: Int) |