Package com.castlabs.sdk.mediasession
package com.castlabs.sdk.mediasession
-
ClassDescriptionMedia Session builder allowing customizationsMediaSessionPlugin integrates castLabs Player SDK with AndroidX Media2 session APIs.Builds a
MediaSession.SessionCallback
with various collaborators.Provides allowed commands forMediaController
.Callbacks for querying what custom commands are supported, and for handling a custom command when a controller sends it.Default implementation ofSessionCallbackBuilder.AllowedCommandProvider
that behaves as follows: Accepts connection requests from controller if any of the following conditions are met: Controller is in the same package as the session.Callback for handling controller disconnection.ASessionCallbackBuilder.MediaItemProvider
that creates media items containing only a media ID.Provides theMediaItem
.Callback for handling extra initialization after the connection.Callback receiving a user rating for a specified media id.Callback receiving skip backward and skip forward.