CastIntegrationHelper

public class CastIntegrationHelper : NSObject

This class includes a default application ID to be used in a custom GCKCastOptions implementation and a function to set the GCKCastContext instance with a default GCKCastOptions.

  • Default THEOplayer Chromecast receiver application identifier.

    Declaration

    Swift

    @available(*, deprecated, message: "Please use CAF V3 receivers. Google deprecated V2 receivers and encourages the migration to V3. THEOplayer GoogleCastIntegration module officially supports CAF V3 receivers only.")
    public static var theoplayerV2ReceiverApplicationID: String
  • Default THEOplayer Chromecast receiver application identifier.

    Declaration

    Swift

    public static var defaultV3ReceiverApplicationID: String
  • This function will set the GCKCastContext shared instance with a default implementation of GCKCastOptions that will set the THEOplayer chromecast receiver as the receiver and set the physicalVolumeButtonsWillControlDeviceVolume parameter to true.

    Note

    Call this method in -[application:didFinishLaunchingWithOptions:] application lifecycle method   https://developers.google.com/cast/docs/ios_sender/integrate#initialize_the_cast_context

    Declaration

    Swift

    public static func setGCKCastContextSharedInstanceWithDefaultCastOptions()