This guide provides information about the API changes between Browser TVSDK 2.4.5 and version 2.4.6.

Advertising workflow API element changes

These tables compare the advertising workflow API elements between Browser TVSDK version 2.4.5 and version 2.4.6.

Tables in this topic:

  • AdAsset

AdAsset

Browser TVSDK 2.4.5 API Browser TVSDK 2.4.6 API

Class AdAsset {
readOnly attribute string parameters

};

Class AdAsset {

attribute string adParameters

};

Generic playback API element changes

These tables compare the generic playback API elements between Browser TVSDK version 2.4.5 and version 2.4.6.

Tables in this topic:

  • MediaPlayer

MediaPlayer

Browser TVSDK 2.4.5 API Browser TVSDK 2.4.6 API

Class MediaPlayer {

};

Class MediaPlayer {
PSDKErrorCode error()

};

MediaPlayer.Events Enum

Browser TVSDK 2.4.5 API Browser TVSDK 2.4.6 API

Enum MediaPlayer.Events {

const Number AdBreakStartedEvent = 101,
const Number AdBreakCompletedEvent = 102,
const Number AdBreakSkippedEvent = 103,
const Number AdClickedEvent = 104,
const Number AdStartedEvent = 105,
const Number AdProgressEvent = 106,
const Number AdCompletedEvent = 107,
const Number BufferingBeginEvent = 108,
const Number BufferingEndEvent = 109,
const Number DRMMetadataInfoAvailableEvent = 110,
const Number LoadInformationEvent = 111,
const Number ItemCreatedEvent = 112, 
const Number ItemUpdatedEvent = 113, 
const Number CaptionsUpdatedEvent = 114,
const Number AudioUpdatedEvent = 115,
const Number PlaybackRangeUpdatedEvent = 116,
const Number MainManifestUpdatedEvent = 117,
const Number StatusChangeEvent = 118,
const Number PlaybackRateSelectedEvent = 119,
const Number PlaybackRatePlayingEvent = 120,
const Number ProfileChangeEvent = 121,
const Number ReservationReachedEvent = 122
const Number SeekPositionAdjustedEvent : 123,
const Number SeekBeginEvent = 124,
const Number SeekEndEvent = 125,
const Number SizeAvailableEvent = 126,
const Number TimeChangeEvent = 127,
const Number TimedMetadataEvent = 128,
const Number TimelineUpdatedEvent = 129,
const Number PlayStartEvent = 130,
const Number OperationFailedEvent = 131,
const Number TimedMetadataInBackgroundEvent = 132,
const Number TimedEvent = 133,
const Number BufferPreparedEvent = 134,

const Number PSDKLastEvent= 134,
const Number PSDKFirstUserEvent= 10000

};

Class PSDKEventType {

const Number AD_BREAK_STARTED = 101,
const Number AD_BREAK_COMPLETED : 102,
const Number AD_BREAK_SKIPPED = 103,
const Number AD_CLICK = 104,
const Number AD_STARTED = 105,
const Number AD_PROGRESS = 106,
const Number AD_COMPLETED = 107,
const Number BUFFERING_BEGIN = 108,
const Number BUFFERING_END = 109,
const Number DRM_METADATA_INFO_AVAILABLE = 110,
const Number LOAD_INFORMATION_AVAILABLE = 111,
const Number ITEM_CREATED = 112,
const Number ITEM_UPDATED = 113,
const Number CAPTIONS_UPDATED = 114,
const Number AUDIO_UPDATED = 115,
const Number PLAYBACK_RANGE_UPDATED = 116,
const Number MASTER_UPDATED = 117,
const Number STATUS_CHANGED = 118,
const Number RATE_SELECTED = 119,
const Number RATE_PLAYING = 120,
const Number PROFILE_CHANGED = 121,
const Number RESERVATION_REACHED = 122,
const Number SEEK_POSITION_ADJUSTED = 123,
const Number SEEK_BEGIN = 124,
const Number SEEK_END = 125,
const Number SIZE_AVAILABLE = 126,
const Number TIME_CHANGED = 127,
const Number TIMED_METADATA_AVAILABLE = 128,
const Number TIMELINE_UPDATED = 129,
const Number PLAY_START = 130,
const Number OPERATION_FAILED = 131,
const Number TIMED_METADATA_IN_BACKGROUND = 132,
const Number TIMED_EVENT = 133,
const Number BUFFER_PREPARED = 134,
const Number AD_RESOLUTION_COMPLETE = 135,
const Number LAST_EVENT = 135,
const Number FIRST_USER_EVENT = 10000


};

Utility and Helper API element changes

These tables compare the utility and helper API elements between Browser TVSDK version 2.4.5 and version 2.4.6.

Tables in this topic:

  • PSDKErrorCode

PSDKErrorCode

Browser TVSDK 2.4.5 API Browser TVSDK 2.4.6 API

Class PSDKErrorCode {

const Number kECSuccess = 0;
const Number kECInvalidArgument = 1;
const Number kECNullPointer = 2;
const Number kECIllegalState = 3
const Number kECInterfaceNotFound = 4;
const Number kECCreationFailed = 5;
const Number kECUnsupportedOperation = 6;
const Number kECDataNotAvailable = 7;
const Number kECSeekError = 8;
const Number kECUnsupportedFeature = 9;
const Number kECRangeError = 10;
const Number kECCodecNotSupported = 11;
const Number kECMediaError = 12;
const Number kECNetworkError = 13;
const Number kECGenericError = 14;
const Number kECInvalidSeekTime = 15;
const Number kECAudioTrackError = 16;
const Number kECAccessFromDifferentThreadError = 17;
const Number kECElementNotFound = 18;
const Number kECNotImplemented = 19;
const Number kECPrerollDisabled = 20;
const Number kECPlaybackOperationFailed = 200; 
const Number kECNativeWarning = 201; 
const Number kECAdResolverFailed = 202;
const Number kECAdManifestLoadFailed =203;


};

Class PSDKErrorCode {

const Number SUCCESS = 0;
const Number INVALID_ARGUMENT = 1;
const Number NULL_POINTER = 2;
const Number ILLEGAL_STATE = 3;
const Number INTERFACE_NOT_FOUND = 4;
const Number CREATION_FAILED = 5;
const Number UNSUPPORTED_OPERATION = 6;
const Number DATA_NOT_AVAILABLE = 7;
const Number SEEK_ERROR = 8;
const Number UNSUPPORTED_FEATURE = 9;
const Number RANGE_ERROR = 10;
const Number CODEC_NOT_SUPPORTED = 11;
const Number MEDIA_ERROR = 12;
const Number NETWORK_ERROR = 13;
const Number GENERIC_ERROR = 14;
const Number INVALID_SEEK_TIME = 15;
const Number AUDIO_TRACK_ERROR = 16;
const Number ACCESS_FROM_DIFFERENT_THREAD_ERROR = 17;
const Number ELEMENT_NOT_FOUND = 18;
const Number NOT_IMPLEMENTED = 19;
const Number PREROLL_DISABLED : 20;
const Number PLAYBACK_OPERATION_FAILED = 200;
const Number NATIVE_WARNING = 201; 
const Number AD_RESOLVER_FAILED = 202; 
const Number AD_MANIFEST_LOAD_FAILED : 203;

const Number LAZY_AD_RESOLUTION_IN_PROGRESS : 204; 

const Number APP_GENERATED_ERROR = 400;

   };

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