YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | List of all members
de.yaacc.player.AVTransportPlayerWrapper Class Reference

Media3 Player wrapper for AVTransportPlayer. More...

Inheritance diagram for de.yaacc.player.AVTransportPlayerWrapper:
Inheritance graph
Collaboration diagram for de.yaacc.player.AVTransportPlayerWrapper:
Collaboration graph

Public Member Functions

 AVTransportPlayerWrapper (AVTransportPlayer avTransportPlayer, Listener listener)
 
void notifyPlaybackStateChanged ()
 
void notifyVolumeChanged ()
 
Looper getApplicationLooper ()
 
void addListener (Listener listener)
 
void removeListener (Listener listener)
 
void setMediaItems (List< MediaItem > mediaItems)
 
void setMediaItems (List< MediaItem > mediaItems, boolean resetPosition)
 
void setMediaItems (List< MediaItem > mediaItems, int startIndex, long startPositionMs)
 
void setMediaItem (MediaItem mediaItem)
 
void setMediaItem (MediaItem mediaItem, long startPositionMs)
 
void setMediaItem (MediaItem mediaItem, boolean resetPosition)
 
void addMediaItem (MediaItem mediaItem)
 
void addMediaItem (int index, MediaItem mediaItem)
 
void addMediaItems (List< MediaItem > mediaItems)
 
void addMediaItems (int index, List< MediaItem > mediaItems)
 
void moveMediaItem (int currentIndex, int newIndex)
 
void moveMediaItems (int fromIndex, int toIndex, int newIndex)
 
void replaceMediaItem (int index, MediaItem mediaItem)
 
void replaceMediaItems (int fromIndex, int toIndex, List< MediaItem > mediaItems)
 
void removeMediaItem (int index)
 
void removeMediaItems (int fromIndex, int toIndex)
 
void clearMediaItems ()
 
boolean isCommandAvailable (int command)
 
boolean canAdvertiseSession ()
 
Commands getAvailableCommands ()
 
void prepare ()
 
int getPlaybackState ()
 
int getPlaybackSuppressionReason ()
 
PlaybackException getPlayerError ()
 
void play ()
 start playing the current item
 
void pause ()
 Pause the current item.
 
void setPlayWhenReady (boolean playWhenReady)
 
boolean getPlayWhenReady ()
 
void setRepeatMode (int repeatMode)
 
int getRepeatMode ()
 
void setShuffleModeEnabled (boolean shuffleModeEnabled)
 
boolean getShuffleModeEnabled ()
 
boolean isLoading ()
 
void seekToDefaultPosition ()
 
void seekToDefaultPosition (int mediaItemIndex)
 
void seekTo (long positionMs)
 
void seekTo (int mediaItemIndex, long positionMs)
 
long getSeekBackIncrement ()
 
void seekBack ()
 
long getSeekForwardIncrement ()
 
void seekForward ()
 
boolean hasPrevious ()
 
boolean hasPreviousWindow ()
 
boolean hasPreviousMediaItem ()
 
void previous ()
 play the previous item
 
void seekToPreviousWindow ()
 
boolean hasNextMediaItem ()
 
void next ()
 play the next item
 
void seekToNextWindow ()
 
void seekToPreviousMediaItem ()
 
long getMaxSeekToPreviousPosition ()
 
void seekToNextMediaItem ()
 
void seekToPrevious ()
 
boolean hasNext ()
 
boolean hasNextWindow ()
 
void seekToNext ()
 
void setPlaybackParameters (PlaybackParameters playbackParameters)
 
void setPlaybackSpeed (float speed)
 
PlaybackParameters getPlaybackParameters ()
 
void stop ()
 stops playing.
 
void release ()
 
Timeline getCurrentTimeline ()
 
int getCurrentPeriodIndex ()
 
int getCurrentWindowIndex ()
 
int getCurrentMediaItemIndex ()
 
int getNextWindowIndex ()
 
int getNextMediaItemIndex ()
 
int getPreviousWindowIndex ()
 
int getPreviousMediaItemIndex ()
 
MediaItem getCurrentMediaItem ()
 
int getMediaItemCount ()
 
MediaItem getMediaItemAt (int index)
 
long getDuration ()
 returns the duration of the current item
 
long getCurrentPosition ()
 returns the current position of the current item in millis
 
long getBufferedPosition ()
 
int getBufferedPercentage ()
 
long getTotalBufferedDuration ()
 
boolean isCurrentWindowDynamic ()
 
boolean isCurrentMediaItemDynamic ()
 
boolean isCurrentWindowLive ()
 
boolean isCurrentMediaItemLive ()
 
long getCurrentLiveOffset ()
 
boolean isCurrentWindowSeekable ()
 
boolean isCurrentMediaItemSeekable ()
 
boolean isPlayingAd ()
 
int getCurrentAdGroupIndex ()
 
int getCurrentAdIndexInAdGroup ()
 
long getContentDuration ()
 
long getContentPosition ()
 
long getContentBufferedPosition ()
 
AudioAttributes getAudioAttributes ()
 
void setAudioAttributes (AudioAttributes audioAttributes, boolean handleAudioFocus)
 
void setVolume (float volume)
 
float getVolume ()
 
void clearVideoSurface ()
 
void clearVideoSurface (android.view.Surface surface)
 
void setVideoSurface (android.view.Surface surface)
 
void setVideoSurfaceHolder (SurfaceHolder surfaceHolder)
 
void clearVideoSurfaceHolder (SurfaceHolder surfaceHolder)
 
void setVideoSurfaceView (SurfaceView surfaceView)
 
void clearVideoSurfaceView (SurfaceView surfaceView)
 
void setVideoTextureView (TextureView textureView)
 
void clearVideoTextureView (TextureView textureView)
 
VideoSize getVideoSize ()
 
Size getSurfaceSize ()
 
CueGroup getCurrentCues ()
 
DeviceInfo getDeviceInfo ()
 
int getDeviceVolume ()
 
boolean isDeviceMuted ()
 
void setDeviceVolume (int volume)
 
void setDeviceVolume (int volume, int flags)
 
void increaseDeviceVolume ()
 
void increaseDeviceVolume (int flags)
 
void decreaseDeviceVolume ()
 
void decreaseDeviceVolume (int flags)
 
void setDeviceMuted (boolean muted)
 
void setDeviceMuted (boolean muted, int flags)
 
Tracks getCurrentTracks ()
 
TrackSelectionParameters getTrackSelectionParameters ()
 
void setTrackSelectionParameters (TrackSelectionParameters parameters)
 
MediaMetadata getMediaMetadata ()
 
MediaMetadata getPlaylistMetadata ()
 
void setPlaylistMetadata (MediaMetadata mediaMetadata)
 
Object getCurrentManifest ()
 
boolean isPlaying ()
 
- Public Member Functions inherited from de.yaacc.player.Player
void setItems (PlayableItem... items)
 Set a List of Items.
 
void addItems (List< PlayableItem > items)
 adds additional item to the end of the playlist
 
void clear ()
 Drops all Items.
 
void onDestroy ()
 Kill the player.
 
String getName ()
 Get the player name.
 
void setName (String name)
 Set the name of the player.
 
String getShortName ()
 Get the player short name.
 
void setShortName (String name)
 Set the short name of the player.
 
void exit ()
 Exit the player.
 
int getId ()
 Returns the id of the Player.
 
void addPropertyChangeListener (PropertyChangeListener listener)
 add a property change listener
 
void removePropertyChangeListener (PropertyChangeListener listener)
 remove a property change listener
 
String getPositionString ()
 returns the current item position in the playlist
 
String getCurrentItemTitle ()
 returns the title of the current item
 
int getCurrentItemIndex ()
 
String getNextItemTitle ()
 returns the title of the next item
 
String getElapsedTime ()
 returns the elapsed time of the current item
 
URI getAlbumArt ()
 
Bitmap getIcon ()
 
void setIcon (Bitmap icon)
 
boolean getMute ()
 
void setMute (boolean mute)
 
boolean hasActionGetVolume ()
 
boolean hasActionGetMute ()
 
void setVolume (int volume)
 
int getIconResourceId ()
 
String getDeviceId ()
 
PendingIntent getNotificationIntent ()
 Returns the intent which is to be started by pushing the notification entry.
 
List< PlayableItemgetItems ()
 
void fastForward (int i)
 fast forward seconds
 
void fastRewind (int i)
 fast rewind seconds
 
MediaSessionCompat getMediaSession ()
 Get the MediaSession for this player (for volume control integration)
 

Detailed Description

Media3 Player wrapper for AVTransportPlayer.

Allows using PlayerNotificationManager with remote UPnP playback.

Member Function Documentation

◆ getCurrentPosition()

long de.yaacc.player.AVTransportPlayerWrapper.getCurrentPosition ( )

returns the current position of the current item in millis

Returns
the position

Implements de.yaacc.player.Player.

Here is the call graph for this function:

◆ getDuration()

long de.yaacc.player.AVTransportPlayerWrapper.getDuration ( )

returns the duration of the current item

Returns
the duration

Implements de.yaacc.player.Player.

Here is the call graph for this function:

◆ getVolume()

float de.yaacc.player.AVTransportPlayerWrapper.getVolume ( )

◆ isPlaying()

boolean de.yaacc.player.AVTransportPlayerWrapper.isPlaying ( )

◆ next()

void de.yaacc.player.AVTransportPlayerWrapper.next ( )

play the next item

Implements de.yaacc.player.Player.

Here is the call graph for this function:

◆ pause()

void de.yaacc.player.AVTransportPlayerWrapper.pause ( )

Pause the current item.

Implements de.yaacc.player.Player.

Here is the call graph for this function:

◆ play()

void de.yaacc.player.AVTransportPlayerWrapper.play ( )

start playing the current item

Implements de.yaacc.player.Player.

Here is the call graph for this function:

◆ previous()

void de.yaacc.player.AVTransportPlayerWrapper.previous ( )

play the previous item

Implements de.yaacc.player.Player.

Here is the call graph for this function:

◆ seekTo()

void de.yaacc.player.AVTransportPlayerWrapper.seekTo ( long  positionMs)

◆ stop()

void de.yaacc.player.AVTransportPlayerWrapper.stop ( )

stops playing.

And returns to the beginning of the item list.

Implements de.yaacc.player.Player.

Here is the call graph for this function:

The documentation for this class was generated from the following file: