OGCastConnector
class OGCastConnector @JvmOverloads constructor(context: Context, hlsSegmentFormat: CastHlsSegmentFormat = CastHlsSegmentFormat.FMP4, customDataProvider: () -> Map<String, Any?>? = null) : CastConnector
Chromecast sender connector backed by Media3's CastPlayer. Requires Google Play Services and a Cast OptionsProvider in the host app manifest — OGCastOptionsProvider can be used directly and defaults to Google's default media receiver; a custom Web Receiver ID is configured via manifest meta-data (see OGCastOptionsProvider).
customDataProvider is invoked when media is loaded onto the receiver; the returned map is attached to the load request as customData JSON — the hook for passing auth/session context to a custom receiver.
Constructors
Link copied to clipboard
constructor(context: Context, hlsSegmentFormat: CastHlsSegmentFormat = CastHlsSegmentFormat.FMP4, customDataProvider: () -> Map<String, Any?>? = null)