Interface GoogleCastManager.CastInfoProvider

Enclosing class:
GoogleCastManager

public static interface GoogleCastManager.CastInfoProvider
Optional cast info provider to add or modify request cast params.

The GoogleCastManager.startCasting(PlayerController, SessionManager, MediaMetadata) and GoogleCastManager.startCasting(Bundle, SessionManager, MediaMetadata) methods will map the info from the provided PlayerController or Bundle respectively. If any of those mappings should be changed or any further fields should be added, do so in the onSendCastRequest(Bundle, JSONObject).

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSendCastRequest(Bundle bundle, JSONObject jsonObject)
    Will be called with the built JSONObject right before sending it to the cast device.