Use the helper class AuditudeSettings to set up Adobe Primetime ad decisioning metadata.
Adobe Primetime ad decisioning was previously known as Auditude .
AuditudeSettings auditudeSettings = new AuditudeSettings();
Set the Adobe Primetime ad decisioning mediaID, zoneID, domain, and the optional targeting parameters.
auditudeSettings.domain = "yourdomain"; auditudeSettings.mediaId = "mediaid"; auditudeSettings.zoneId = "zoneid";
MediaResource instance by using the media stream URL and the previously created advertising metadata.
mediaResource = new AdobePSDK.MediaResource ( resourceUrl, resourceType, auditudeSettings);
MediaResource object through the
MediaPlayer starts loading and processing the media stream manifest.
MediaPlayer transitions to the INITIALIZED status, get the media stream characteristics in the form of a
MediaPlayerItem instance through the
(Optional) Query the
MediaPlayerItem instance to see whether the stream is live, regardless of whether it has alternate audio tracks.
This information can help you prepare the UI for the playback. For example, if you know there are two audio tracks, you can include a UI control that toggles between these tracks.
MediaPlayer.prepareToPlay to start the advertising workflow.
After the ads have been resolved and placed on the timeline, the
MediaPlayer transitions to the PREPARED state.
MediaPlayer.play to start the playback.
Browser TVSDK now includes ads when your media plays.