Show Menu
主题×

使用JavaScript 3.x实现标准元数据

实施

实例化上下文数据对象,填充所需的标准元数据变量。 例如:
_onVideoLoad = function () { //Create the Media Object var mediaObject = ADB.Media.createMediaObject(<MEDIA_NAME>, <MEDIA_ID, <MEDIA_LENGTH>, <STREAM_TYPE>, <MEDIA_TYPE>); //Set standard Video Metadata var contextData = {}; contextData = "Sample Show"; contextData = "Sample Season"; contextData = "Sample Episode"; //Set standard Audio Metadata var contextData = {}; contextData = "Sample Artist"; contextData = "Sample Album"; contextData = "Sample Label"; this.tracker.trackSessionStart(mediaObject, contextData); };