Chiavi metadati Chromecast chromecast-metadata-keys
I metadati standard di video e annunci possono essere impostati rispettivamente sugli oggetti informazioni multimediali e annunci. Utilizzando le chiavi costanti per i metadati video/annunci, imposta il dizionario contenente i metadati standard sull’oggetto informazioni prima di richiamare le API di tracciamento. Fai riferimento alle tabelle seguenti per l’elenco completo delle costanti di metadati standard, seguite da un esempio.
Costanti di metadati video-metadata-constants
Nome dei metadati
Chiave dei dati contestuali
Nome costante
Spettacolo
a.media.show
ADBMobile.media.VideoMetadataKeys.SHOW
Stagione
a.media.season
ADBMobile.media.VideoMetadataKeys.SEASON
Episodio
a.media.episode
ADBMobile.media.VideoMetadataKeys.EPISODE
Risorsa
a.media.asset
ADBMobile.media.VideoMetadataKeys.TMS_ID
Genere
a.media.genre
ADBMobile.media.VideoMetadataKeys.GENRE
Data della prima messa in onda
a.media.airDate
ADBMobile.media.VideoMetadataKeys.FIRST_AIR_DATE
Data della prima messa in onda digitale
a.media.digitalDate
ADBMobile.media.VideoMetadataKeys.FIRST_DIGITAL_DATE
Classificazione
a.media.rating
ADBMobile.media.VideoMetadataKeys.RATING
Creatore
a.media.originator
ADBMobile.media.VideoMetadataKeys.ORIGINATOR
Rete
a.media.network
ADBMobile.media.VideoMetadataKeys.NETWORK
Tipo di spettacolo
a.media.type
ADBMobile.media.VideoMetadataKeys.SHOW_TYPE
Caricamento annuncio
a.media.adLoad
ADBMobile.media.VideoMetadataKeys.AD_LOAD
MVPD
a.media.pass.mvpd
ADBMobile.media.VideoMetadataKeys.MVPD
Autorizzato
a.media.pass.auth
ADBMobile.media.VideoMetadataKeys.AUTHORIZED
Fascia oraria
a.media.dayPart
ADBMobile.media.VideoMetadataKeys.DAY_PART
Feed
a.media.feed
ADBMobile.media.VideoMetadataKeys.FEED
Formato flusso
a.media.format
ADBMobile.media.VideoMetadataKeys.STREAM_FORMAT
Costanti di metadati dell’annuncio ad-metadata-constants
Nome dei metadati
Chiave dei dati contestuali
Nome costante
Inserzionista
a.media.ad.advertiser
ADBMobile.media.AdMetadataKeys.ADVERTISER
ID campagna
a.media.ad.campaign
ADBMobile.media.AdMetadataKeys.CAMPAIGN_ID
ID creatività
a.media.ad.creative
ADBMobile.media.AdMetadataKeys.CREATIVE_ID
ID posizionamento
a.media.ad.placement
ADBMobile.media.AdMetadataKeys.PLACEMENT_ID
ID sito
a.media.ad.site
ADBMobile.media.AdMetadataKeys.SITE_ID
URL creatività
a.media.ad.creativeURL
ADBMobile.media.AdMetadataKeys.CREATIVE_URL
Implementazioni di esempio per Chromecast sample-implementations-for-chromecast
Video
// setting Standard Video Metadata as context data on trackLoad API mediaContextData = { }
mediaMetadata["videotype"] = "episode";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.SHOW] = "sample show";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.SEASON] = "sample season";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.EPISODE] = "sample episode";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.TMS_ID] = "sample tms_id";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.GENRE] = "sample genre";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.FIRST_AIR_DATE] = "sample first_air_date";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.FIRST_DIGITAL_DATE] = "sample first_digital_date";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.RATING] = "sample rating";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.ORIGINATOR] = "sample originator";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.NETWORK] = "sample network";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.SHOW_TYPE] = "sample show type";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.AD_LOAD] = "sample ad load";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.MVPD] = "sample mvpd";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.AUTHORIZED] = "sample authorized";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.DAY_PART] = "sample day_part";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.FEED] = "sample feed";
standardVideoMetadata[ADBMobile.media.VideoMetadataKeys.STREAM_FORMAT] = "sample format";
var mediaObject = ADBMobile.media.createMediaObject(content.name, content.id, content.length, content.streamType);
mediaObject[ADBMobile.media.MediaObjectKey.StandardVideoMetadata] = standardVideoMetadata;
ADBMobile.media.trackSessionStart(mediaObject, mediaMetadata);
Audio
// setting Standard Audio Metadata as context data on trackLoad API mediaContextData = { }
mediaMetadata["audiotype"] = "podcast";
var standardAudioMetadata = {};
standardAudioMetadata[ADBMobile.media.AudioMetadataKeys.ARTIST] = "sample artist";
standardAudioMetadata[ADBMobile.media.AudioMetadataKeys.ALBUM] = "sample album" ;
standardAudioMetadata[ADBMobile.media.AudioMetadataKeys.LABEL] = "sample label";
standardAudioMetadata[ADBMobile.media.AudioMetadataKeys.AUTHOR] = "sample author" ;
standardAudioMetadata[ADBMobile.media.AudioMetadataKeys.STATION] = "sample station " ;
standardAudioMetadata[ADBMobile.media.AudioMetadataKeys.PUBLISHER] = "sample publisher";
var mediaObject = ADBMobile.media.createMediaObject(content.name, content.id, content.length, content.streamType, content.mediaType);
mediaObject[ADBMobile.media.MediaObjectKey.StandardAudiooMetadata] = standardAudiooMetadata;
ADBMobile.media.trackSessionStart(mediaObject, mediaMetadata);
Annunci
// setting Standard Ad Metadata as context data on ad start event
var standardAdMetadata = {};
standardAdMetadata[ADBMobile.media.AdMetadataKeys.CAMPAIGN_ID] = "sample campaign";
standardAdMetadata[ADBMobile.media.AdMetadataKeys.ADVERTISER] = "sample advertiser" ;
standardAdMetadata[ADBMobile.media.AdMetadataKeys.CREATIVE_ID] = "sample creativeid";
standardAdMetadata[ADBMobile.media.AdMetadataKeys.PLACEMENT_ID] = "sample placement id" ;
standardAdMetadata[ADBMobile.media.AdMetadataKeys.SITE_ID] = "sample site id" ;
standardAdMetadata[ADBMobile.media.AdMetadataKeys.CREATIVE_URL] = "sample creative url";
var adObject = ADBMobile.media.createAdObject(ad.name, ad.id, ad.position, ad.length);
adObject[ADBMobile.media.MediaObjectKey.StandardAdMetadata] = standardVideoMetadata;
ADBMobile.media.trackEvent(ADBMobile.media.Event.AdStart, this._player.getAdInfo(), adContextData);
recommendation-more-help
c8eee520-cef5-4f8c-a38a-d4952cfae4eb