Package 

Class IFramePlayerOptions.Builder

    • Constructor Detail

      • IFramePlayerOptions.Builder

        IFramePlayerOptions.Builder()
    • Method Detail

      • rel

         final IFramePlayerOptions.Builder rel(Integer rel)

        Controls the related videos shown at the end of a video.

        Parameters:
        rel - If set to 0: related videos will come from the same channel as the video that was just played.
      • langPref

         final IFramePlayerOptions.Builder langPref(String languageCode)

        This parameter specifies the default language that the player will use to display captions. If you use this parameter and also set the cc_load_policy parameter to 1, then the player will show captions in the specified language when the player loads. If you do not also set the cc_load_policy parameter, then captions will not display by default, but will display in the specified language if the user opts to turn captions on.

        Parameters:
        languageCode - ISO 639-1 two-letter language code
      • ccLoadPolicy

         final IFramePlayerOptions.Builder ccLoadPolicy(Integer ccLoadPolicy)

        Controls video captions. It doesn't work with automatically generated captions.

        Parameters:
        ccLoadPolicy - if set to 1: the player will show captions.