Skip to content

Instantly share code, notes, and snippets.

@giannif
Last active August 29, 2015 13:56
Show Gist options
  • Save giannif/9009022 to your computer and use it in GitHub Desktop.
Save giannif/9009022 to your computer and use it in GitHub Desktop.
p-js service config response

URL:

/config/:uri

{
  "mediaGen": {
    "vmap": {
      // The stream url to play.
      "uri": "http://streamurl.com",
      // The duration of the stream (including ads, of course).
      "totalDuration": 232.067,
      // trackers to fire.
      "trackers": [],
      // metadata about the ads.
      "adBreaks": []
    }
  }
}

Tracker Object

{
  // The ID of the ad break the tracker is associated with.
  "breakId": "0",
  // The event name, not used for time related trackers. 
  "event": "firstQuartile",
  // the tracker url 
  "url": "http://140cc.v.fwmrm.net/ad/l/1?s=b121&n=82125%3B82125&t=1392409723793873010&metr=7&ct=1&et=i&cn=firstQuartile",
  // the time to fire the tracker
  "timeToFire": 1
}

Pre/mid/post rolls

{
  // the type of ad break
  "type": "preroll",
  // the id of the ad break
  "breakId": "0",
  // the start of the ad break
  "startTime": 0,
  // the end time of the ad break
  "endTime": 5,
  // ignore..
  "timeOffset": "start",
  // the duration of the ad break
  "duration": 5
}
@giannif
Copy link
Author

giannif commented Feb 14, 2014

Thoughts:

  • Perhaps "rolls" should be "adBreaks".
  • Should I delete timeOffset in adBreak object.
  • What do we call the mediaGen stuff (e.g. beacons, thumbnail, overlays).
  • Should the beacons be mixed with the unicorn trackers?

@kevinabrail
Copy link

Dale and I were thinking about the organization of the parameters and considering this:

"feed": {...}
"mediaGen": {...}
"ads": {...}
"adParams" : {...}
"reportingParams" : {...}
"overrideParams": {...}
"playerParams" : {...}
"imageInfo" : {...} //this would hold the thumbnail params

Thoughts/questions/problems?

@giannif
Copy link
Author

giannif commented Feb 19, 2014

I moved this back to the Wiki:

https://github.com/p-js/services/wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment