public class

IMediaSession.Default

extends java.lang.Object

implements IMediaSession

 java.lang.Object

↳androidx.media3.session.IMediaSession.Default

Overview

Default implementation for IMediaSession.

Summary

Constructors
publicDefault()

Methods
public voidaddMediaItem(IMediaController caller, int seq, android.os.Bundle mediaItemBundle)

public voidaddMediaItems(IMediaController caller, int seq, android.os.IBinder mediaItems)

public voidaddMediaItemsWithIndex(IMediaController caller, int seq, int index, android.os.IBinder mediaItems)

public voidaddMediaItemWithIndex(IMediaController caller, int seq, int index, android.os.Bundle mediaItemBundle)

public android.os.IBinderasBinder()

public voidclearMediaItems(IMediaController caller, int seq)

public voidconnect(IMediaController caller, int seq, android.os.Bundle connectionRequest)

public voiddecreaseDeviceVolume(IMediaController caller, int seq)

public voiddecreaseDeviceVolumeWithFlags(IMediaController caller, int seq, int flags)

public voidflushCommandQueue(IMediaController caller)

public voidgetChildren(IMediaController caller, int seq, java.lang.String parentId, int page, int pageSize, android.os.Bundle libraryParams)

public voidgetItem(IMediaController caller, int seq, java.lang.String mediaId)

public voidgetLibraryRoot(IMediaController caller, int seq, android.os.Bundle libraryParams)

public voidgetSearchResult(IMediaController caller, int seq, java.lang.String query, int page, int pageSize, android.os.Bundle libraryParams)

public voidincreaseDeviceVolume(IMediaController caller, int seq)

public voidincreaseDeviceVolumeWithFlags(IMediaController caller, int seq, int flags)

public voidmoveMediaItem(IMediaController caller, int seq, int currentIndex, int newIndex)

public voidmoveMediaItems(IMediaController caller, int seq, int fromIndex, int toIndex, int newIndex)

public voidonControllerResult(IMediaController caller, int seq, android.os.Bundle controllerResult)

public voidonCustomCommand(IMediaController caller, int seq, android.os.Bundle sessionCommand, android.os.Bundle args)

public voidpause(IMediaController caller, int seq)

public voidplay(IMediaController caller, int seq)

public voidprepare(IMediaController caller, int seq)

public voidrelease(IMediaController caller, int seq)

public voidremoveMediaItem(IMediaController caller, int seq, int index)

public voidremoveMediaItems(IMediaController caller, int seq, int fromIndex, int toIndex)

public voidreplaceMediaItem(IMediaController caller, int seq, int index, android.os.Bundle mediaItemBundle)

public voidreplaceMediaItems(IMediaController caller, int seq, int fromIndex, int toIndex, android.os.IBinder mediaItems)

public voidsearch(IMediaController caller, int seq, java.lang.String query, android.os.Bundle libraryParams)

public voidseekBack(IMediaController caller, int seq)

public voidseekForward(IMediaController caller, int seq)

public voidseekTo(IMediaController caller, int seq, long positionMs)

public voidseekToDefaultPosition(IMediaController caller, int seq)

public voidseekToDefaultPositionWithMediaItemIndex(IMediaController caller, int seq, int mediaItemIndex)

public voidseekToNext(IMediaController caller, int seq)

public voidseekToNextMediaItem(IMediaController caller, int seq)

public voidseekToPrevious(IMediaController caller, int seq)

public voidseekToPreviousMediaItem(IMediaController caller, int seq)

public voidseekToWithMediaItemIndex(IMediaController caller, int seq, int mediaItemIndex, long positionMs)

public voidsetAudioAttributes(IMediaController caller, int seq, android.os.Bundle audioAttributes, boolean handleAudioFocus)

public voidsetDeviceMuted(IMediaController caller, int seq, boolean muted)

public voidsetDeviceMutedWithFlags(IMediaController caller, int seq, boolean muted, int flags)

public voidsetDeviceVolume(IMediaController caller, int seq, int volume)

public voidsetDeviceVolumeWithFlags(IMediaController caller, int seq, int volume, int flags)

public voidsetMediaItem(IMediaController caller, int seq, android.os.Bundle mediaItemBundle)

public voidsetMediaItems(IMediaController caller, int seq, android.os.IBinder mediaItems)

public voidsetMediaItemsWithResetPosition(IMediaController caller, int seq, android.os.IBinder mediaItems, boolean resetPosition)

public voidsetMediaItemsWithStartIndex(IMediaController caller, int seq, android.os.IBinder mediaItems, int startIndex, long startPositionMs)

public voidsetMediaItemWithResetPosition(IMediaController caller, int seq, android.os.Bundle mediaItemBundle, boolean resetPosition)

public voidsetMediaItemWithStartPosition(IMediaController caller, int seq, android.os.Bundle mediaItemBundle, long startPositionMs)

public voidsetPlaybackParameters(IMediaController caller, int seq, android.os.Bundle playbackParametersBundle)

public voidsetPlaybackSpeed(IMediaController caller, int seq, float speed)

public voidsetPlaylistMetadata(IMediaController caller, int seq, android.os.Bundle playlistMetadata)

public voidsetPlayWhenReady(IMediaController caller, int seq, boolean playWhenReady)

public voidsetRating(IMediaController caller, int seq, android.os.Bundle rating)

public voidsetRatingWithMediaId(IMediaController caller, int seq, java.lang.String mediaId, android.os.Bundle rating)

public voidsetRepeatMode(IMediaController caller, int seq, int repeatMode)

public voidsetShuffleModeEnabled(IMediaController caller, int seq, boolean shuffleModeEnabled)

public voidsetTrackSelectionParameters(IMediaController caller, int seq, android.os.Bundle trackSelectionParametersBundle)

public voidsetVideoSurface(IMediaController caller, int seq, android.view.Surface surface)

public voidsetVolume(IMediaController caller, int seq, float volume)

public voidstop(IMediaController caller, int seq)

public voidsubscribe(IMediaController caller, int seq, java.lang.String parentId, android.os.Bundle libraryParams)

public voidunsubscribe(IMediaController caller, int seq, java.lang.String parentId)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Default()

Methods

public void setVolume(IMediaController caller, int seq, float volume)

public void setDeviceVolume(IMediaController caller, int seq, int volume)

public void setDeviceVolumeWithFlags(IMediaController caller, int seq, int volume, int flags)

public void increaseDeviceVolume(IMediaController caller, int seq)

public void increaseDeviceVolumeWithFlags(IMediaController caller, int seq, int flags)

public void decreaseDeviceVolume(IMediaController caller, int seq)

public void decreaseDeviceVolumeWithFlags(IMediaController caller, int seq, int flags)

public void setDeviceMuted(IMediaController caller, int seq, boolean muted)

public void setDeviceMutedWithFlags(IMediaController caller, int seq, boolean muted, int flags)

public void setAudioAttributes(IMediaController caller, int seq, android.os.Bundle audioAttributes, boolean handleAudioFocus)

public void setMediaItem(IMediaController caller, int seq, android.os.Bundle mediaItemBundle)

public void setMediaItemWithStartPosition(IMediaController caller, int seq, android.os.Bundle mediaItemBundle, long startPositionMs)

public void setMediaItemWithResetPosition(IMediaController caller, int seq, android.os.Bundle mediaItemBundle, boolean resetPosition)

public void setMediaItems(IMediaController caller, int seq, android.os.IBinder mediaItems)

public void setMediaItemsWithResetPosition(IMediaController caller, int seq, android.os.IBinder mediaItems, boolean resetPosition)

public void setMediaItemsWithStartIndex(IMediaController caller, int seq, android.os.IBinder mediaItems, int startIndex, long startPositionMs)

public void setPlayWhenReady(IMediaController caller, int seq, boolean playWhenReady)

public void onControllerResult(IMediaController caller, int seq, android.os.Bundle controllerResult)

public void connect(IMediaController caller, int seq, android.os.Bundle connectionRequest)

public void onCustomCommand(IMediaController caller, int seq, android.os.Bundle sessionCommand, android.os.Bundle args)

public void setRepeatMode(IMediaController caller, int seq, int repeatMode)

public void setShuffleModeEnabled(IMediaController caller, int seq, boolean shuffleModeEnabled)

public void removeMediaItem(IMediaController caller, int seq, int index)

public void removeMediaItems(IMediaController caller, int seq, int fromIndex, int toIndex)

public void clearMediaItems(IMediaController caller, int seq)

public void moveMediaItem(IMediaController caller, int seq, int currentIndex, int newIndex)

public void moveMediaItems(IMediaController caller, int seq, int fromIndex, int toIndex, int newIndex)

public void replaceMediaItem(IMediaController caller, int seq, int index, android.os.Bundle mediaItemBundle)

public void replaceMediaItems(IMediaController caller, int seq, int fromIndex, int toIndex, android.os.IBinder mediaItems)

public void play(IMediaController caller, int seq)

public void pause(IMediaController caller, int seq)

public void prepare(IMediaController caller, int seq)

public void setPlaybackParameters(IMediaController caller, int seq, android.os.Bundle playbackParametersBundle)

public void setPlaybackSpeed(IMediaController caller, int seq, float speed)

public void addMediaItem(IMediaController caller, int seq, android.os.Bundle mediaItemBundle)

public void addMediaItemWithIndex(IMediaController caller, int seq, int index, android.os.Bundle mediaItemBundle)

public void addMediaItems(IMediaController caller, int seq, android.os.IBinder mediaItems)

public void addMediaItemsWithIndex(IMediaController caller, int seq, int index, android.os.IBinder mediaItems)

public void setPlaylistMetadata(IMediaController caller, int seq, android.os.Bundle playlistMetadata)

public void stop(IMediaController caller, int seq)

public void release(IMediaController caller, int seq)

public void seekToDefaultPosition(IMediaController caller, int seq)

public void seekToDefaultPositionWithMediaItemIndex(IMediaController caller, int seq, int mediaItemIndex)

public void seekTo(IMediaController caller, int seq, long positionMs)

public void seekToWithMediaItemIndex(IMediaController caller, int seq, int mediaItemIndex, long positionMs)

public void seekBack(IMediaController caller, int seq)

public void seekForward(IMediaController caller, int seq)

public void seekToPreviousMediaItem(IMediaController caller, int seq)

public void seekToNextMediaItem(IMediaController caller, int seq)

public void setVideoSurface(IMediaController caller, int seq, android.view.Surface surface)

public void flushCommandQueue(IMediaController caller)

public void seekToPrevious(IMediaController caller, int seq)

public void seekToNext(IMediaController caller, int seq)

public void setTrackSelectionParameters(IMediaController caller, int seq, android.os.Bundle trackSelectionParametersBundle)

public void setRatingWithMediaId(IMediaController caller, int seq, java.lang.String mediaId, android.os.Bundle rating)

public void setRating(IMediaController caller, int seq, android.os.Bundle rating)

public void getLibraryRoot(IMediaController caller, int seq, android.os.Bundle libraryParams)

public void getItem(IMediaController caller, int seq, java.lang.String mediaId)

public void getChildren(IMediaController caller, int seq, java.lang.String parentId, int page, int pageSize, android.os.Bundle libraryParams)

public void search(IMediaController caller, int seq, java.lang.String query, android.os.Bundle libraryParams)

public void getSearchResult(IMediaController caller, int seq, java.lang.String query, int page, int pageSize, android.os.Bundle libraryParams)

public void subscribe(IMediaController caller, int seq, java.lang.String parentId, android.os.Bundle libraryParams)

public void unsubscribe(IMediaController caller, int seq, java.lang.String parentId)

public android.os.IBinder asBinder()