Bitmovin Player React Native SDK - v1.1.0
    Preparing search index...

    Class Source

    Represents audio and video content that can be loaded into a player.

    Hierarchy

    Index

    Constructors

    Properties

    config?: SourceConfig

    The configuration object used to initialize this instance.

    isDestroyed: boolean = false

    Whether the native Source object has been disposed.

    isInitialized: boolean = false

    Whether the native Source object has been created.

    nativeId: string

    Optionally user-defined string id for the native instance, or UUIDv4.

    remoteControl: null | SourceRemoteControlConfig = null

    The remote control config for this source. This is only supported on iOS.

    Platform: iOS

    Methods

    • Destroys the native Source and releases all of its allocated resources.

      Returns void

    • The duration of the source in seconds if it’s a VoD or INFINITY if it’s a live stream. Default value is 0 if the duration is not available or not known.

      Returns Promise<number>

    • Parameters

      • time: number

        The time in seconds for which to retrieve the thumbnail.

      Returns Promise<null | Thumbnail>

      a Thumbnail for the specified playback time if available. Supported thumbnail formats are:

      • WebVtt configured via SourceConfig.thumbnailTrack, on all supported platforms
      • HLS Image Media Playlist in the multivariant playlist, Android-only
      • DASH Image Adaptation Set as specified in DASH-IF IOP, Android-only If a WebVtt thumbnail track is provided, any potential in-manifest thumbnails are ignored on Android.
    • Allocates the native Source instance and its resources natively.

      Returns Promise<void>

    • Whether the source is currently active in a player (i.e. playing back or paused). Only one source can be active in the same player instance at any time.

      Returns Promise<boolean>

    • Whether the source is currently attached to a player instance.

      Returns Promise<boolean>

    • Metadata for the currently loaded source.

      Returns Promise<null | Record<string, any>>

    • Set metadata for the currently loaded source. Setting the metadata to null clears the metadata object in native source.

      Parameters

      • metadata: null | Record<string, any>

        metadata to be set.

      Returns void