Many method signatures and API element names have changed for 2.5.1. Applications designed to use TVSDK 2.5.0 must be rewritten to accommodate those changes before you can use them with TVSDK 2.5.1.

API element changes for 2.5.1

MediaCore: TextFormat

2.5.1 API 2.5.0 API
TextFormat

package com.adobe.mediacore;

public interface TextFormat {

public String getFontColor();
public String getBackgroundColor();
public String getFillColor();
public String getEdgeColor();
}

package com.adobe.mediacore;

public interface TextFormat {

public Color getFontColor();
public Color getBackgroundColor();
public Color getFillColor();
public Color getEdgeColor();
}

TextFormatBuilder

package com.adobe.mediacore;

public final class TextFormatBuilder {

public TextFormatBuilder(
Font font,
Size size,
FontEdge fontEdge,
String fontColor,
String backgroundColor,
String fillColor,
String edgeColor,
int fontOpacity,
int backgroundOpacity,
int fillOpacity,
String bottomInset,
String safeArea)

public TextFormatBuilder
setBackgroundColor(String backgroundColor)
{…}
public TextFormatBuilder
setFillColor(String fillColor) {…}
public TextFormatBuilder
setEdgeColor(String edgeColor) {…}
public TextFormatBuilder
setFontColor(String fontColor) {…}

public String getFontColor() {…}
public String getBackgroundColor() {…}
public String getFillColor() {…}
public String getEdgeColor() {…}
}

package com.adobe.mediacore;

public final class TextFormatBuilder {

public TextFormatBuilder(
Font font,
Size size,
FontEdge fontEdge,
Color fontColor,
Color backgroundColor,
Color fillColor,
Color edgeColor,
int fontOpacity,
int backgroundOpacity,
int fillOpacity,
String bottomInset,
String safeArea)

public TextFormatBuilder
setBackgroundColor(Color backgroundColor)
{…}
public TextFormatBuilder
setFillColor(Color fillColor) {…}
public TextFormatBuilder
setEdgeColor(Color edgeColor) {…}
public TextFormatBuilder
setFontColor(Color fontColor) {…}

public Color getEdgeColor() {…}
public Color getFontColor() {…}
public Color getBackgroundColor() {…}
public Color getFillColor() {…}
}

MediaCore.Metadata: AdvertisingMetadata, AuditudeSettings

2.5.1 API 2.5.0 API
AdvertisingMetadata

package com.adobe.mediacore.metadata;

public class AdvertisingMetadata
extends Metadata {

public final void
setAdRequestTimeout(int adRequestTimeout) {
_adRequestTimeout = adRequestTimeout;
}

public final int getAdRequestTimeout() {
return _adRequestTimeout;
}
}

package com.adobe.mediacore.metadata;

public class AdvertisingMetadata
extends Metadata {
...
}

AuditudeSettings

package com.adobe.mediacore.metadata;

public class AuditudeSettings
extends AdvertisingMetadata {

public String getCRSRulesJsonURL() {
return getValue(CRS_RULES_JSON_URL);
}

public void setCRSRulesJsonURL(String jsonUrl) {
setValue(CRS_RULES_JSON_URL, jsonUrl);
}
public void
setValidMimeTypes(List<String> validMimeTypes) {
if ( validMimeTypes == null ||
validMimeTypes.size() == 0 )
return;
validMimeTypesList = validMimeTypes;
}

public void
setValidMimeTypes(List<String> validMimeTypes) {
if ( validMimeTypes == null ||
validMimeTypes.size() == 0 )
return;
validMimeTypesList = validMimeTypes;
}



}

package com.adobe.mediacore.metadata;

public class AuditudeSettings
extends AdvertisingMetadata {
...
}

MediaCore.QOS: QOSProvider

2.5.1 API 2.5.0 API
QOSProvider

package com.adobe.mediacore.qos;

public final class QOSProvider {
public void
attachMediaPlayerItemLoader(
MediaPlayerItemLoader loader) {
nativeQOSProviderAttachMediaPlayerItemLoader(loader);
}

public void detachMediaPlayerItemLoader() {
nativeQOSProviderDetachMediaPlayerItemLoader();
}

}

package com.adobe.mediacore.qos;

public final class QOSProvider {
...
}

MediaCore.Timeline: Placement

2.5.1 API 2.5.0 API
Placement

package com.adobe.mediacore.timeline;
...
public enum Mode {

FREEREPLACE,

/**
* PSDK will erase the ad content and
* replace it with main content.
*
*/
SPLICEIN;
}

package com.adobe.mediacore.timeline;
...
public enum Mode {

FREEREPLACE;
}

MediaCore.Timeline.Advertising: AdAsset

2.5.1 API 2.5.0 API
AdAsset

package
com.adobe.mediacore.timeline.advertising;

public class AdAsset {
public void setNetworkAdInfo(NetworkAdInfo adInfo) {
this._adInfo = adInfo;
}

public NetworkAdInfo getNetworkAdInfo() {
return _adInfo;
}

}

package
com.adobe.mediacore.timeline.advertising;

public class AdAsset {
...
}

MediaCore.Timeline.Generators: TimedMetadataOpportunityGenerator, OpportunityGenerator

2.5.1 API 2.5.0 API
TimedMetadataOpportunityGenerator

package
com.adobe.mediacore.timeline.generators;

public class TimedMetadataOpportunityGenerator {
public void configure(
MediaPlayerItem item,
Context context,
OpportunityGeneratorClient client,
AdSignalingMode mode,
long playhead,
TimeRange playbackRange) {...}
}

package
com.adobe.mediacore.timeline.generators;

public class TimedMetadataOpportunityGenerator {
public void configure(
MediaPlayerItem item,
Context context,
OpportunityGeneratorClient client,
long playhead,
TimeRange playbackRange) {...}
}

OpportunityGenerator

package
com.adobe.mediacore.timeline.generators;

public class OpportunityGenerator {

public void configure(
MediaPlayerItem item,
Context context,
OpportunityGeneratorClient client,
AdSignalingMode mode,
long playhead,
TimeRange playbackRange);
}

package
com.adobe.mediacore.timeline.generators;

public class OpportunityGenerator {

public void configure(
MediaPlayerItem item,
Context context,
OpportunityGeneratorClient client,
long playhead,
TimeRange playbackRange);
}

MediaCore.VideoAnalytics: VideoAnalyticsProvider, VideoAnalyticsPSDKExtension

2.5.1 API 2.5.0 API
VideoAnalyticsProvider

package
com.adobe.mediacore.videoanalytics;

public class VideoAnalyticsProvider {
void attachMediaPlayer(MediaPlayer mediaPlayer)
{…}
void detachMediaPlayer() {…}

protected void configure() {…}
protected MediaObject createMediaObjectWithAdInfo(
java.lang.String name,
java.lang.String adId,
java.lang.Long position,
java.lang.Double length,
Ad ad) {…}
protected MediaObject createMediaObjectWithVideoInfo(
java.lang.String name,
java.lang.String mediaId,
java.lang.Double length,
java.lang.String streamType) {…}
void detachMediaPlayer() {…}
java.lang.Double getCurrentPlaybackTime() {…}
MediaObject getQoSObject() {…}
void setVideoAnalyticsMetadata(VideoAnalyticsMetadata vaMetadata)
{…}
void trackVideoComplete() {…}

}

package
com.adobe.mediacore.videoanalytics;

public class VideoAnalyticsProvider {
void attachMediaPlayer(MediaPlayer mediaPlayer)
{…}
void detachMediaPlayer() {…}

VideoAnalyticsPSDKExtension
Not in 2.5.1

package
com.adobe.mediacore.videoanalytics;

public class VideoAnalyticsPSDKExtension {}

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy