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 |
|
| AuditudeAdProvider renamed to AuditudeResolver |
|
| AuditudeAdTracker renamed to AuditudeTracker |
|
com.adobe.mediacore classes made private:
|
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() |