Function getPolyfillOptions

  • Returns the URLLoadOptions that have been provided for a specific movie.

    The function getOptionString is given as an argument and used to get values of configuration options that have been overwritten for this specific movie.

    The returned URLLoadOptions interface only contains values for the configuration options that have been overwritten for the movie and no default values. This is necessary because any default values would overwrite other configuration settings with a lower priority (e.g. the general RufflePlayer config).

    Parameters

    • url: string

      The url of the movie.

    • getOptionString: ((optionName) => null | string)

      A function that takes the name of a configuration option. If that configuration option has been overwritten for this specific movie, it returns that value. Otherwise, it returns null.

        • (optionName): null | string
        • Parameters

          • optionName: string

          Returns null | string

    Returns URLLoadOptions

    The URLLoadOptions for the movie.