PSDK changes for 1.2

Several API interfaces have changed for the 1.2 PSDK for Android.

Element Description
MediaPlayer The only supported implementation is the DefaultMediaPlayer class, which is final and is owned by PSDK. Custom implementations are not allowed.
prepareToPlay new parameter
void prepareToPlay(long position)
New optional position parameter. Both in VoD and DVR, the playback might not start at the beginning of the playback window. As the start position affects the placement of the pre-roll ads and the ad resolving process, the position parameter allows you to specify the initial position of the playback. prepareToPlay() is still supported.
seek behavior
void seek(long position)
No longer ignores invalid seek positions. Now adjusts the provided position to a location inside the seekable range. Otherwise, seeking too close to the live point or to the beginning of a rolling window could result in playback stalls or even unrecoverable playback errors.
replaceCurrentItem replaced with replaceCurrentResource
void replaceCurrentResource(MediaResource resource)
Use replaceCurrentResource instead of replaceCurrentItem, which still works correctly in this release but is deprecated.
TimeRange behavior Although for VoD streams any location in the stream is "seekable", this is not true for Live/Linear. The returned range is now inside the range returned by getPlaybackRange().
TimeRange getSeekableRange()
AuditudeMetadata renamed to AuditudeSettings
  • All Auditude related settings are now in a base class called AuditudeSettings.

  • AuditudeMetadata extends the AuditudeSettings class (providing no additional logic) for compatibility.

  • AuditudeMetadata class is deprecated.

AuditudeAdProvider renamed to AuditudeResolver
  • All Auditude ad resolving logic is now in a base class called AuditudeResolver

  • AuditudeAdProvider extends the AuditudeResolver class (providing no additional logic) for compatibility

  • AuditudeAdProvider class is deprecated

AuditudeAdTracker renamed to AuditudeTracker
  • All Auditude ad tracking logic is now in a base class called AuditudeResolver

  • AuditudeAdTracker extends the AuditudeResolver class (providing no additional logic) for compatibility

  • AuditudeAdTracker class is deprecated

com.adobe.mediacore classes made private:
  • AdHandler

  • ContentCache

  • ContentLoader

  • DefaultAdBreakPolicySelector

  • PlayerOperation

  • PlayOperation

  • SeekOperation

No longer public.

These were exposed only in development drops provided between 1.1 and 1.2.

MediaPlayerState new state INITIALIZING

A new state, INITIALIZING, comes between IDLE and INITIALIZED. The sequence is now IDLE - INITIALIZING - INITIALIZED - PREPARING - PREPARED - PLAYING

Version property apiVersion

New integer property apiVersion on the static Version class.

public static int getApiVersion()