URL:
/config/:uri
{
"mediaGen": {
"vmap": {
// The stream url to play.
"uri": "http://streamurl.com",
// The duration of the stream (including ads, of course).| { | |
| "package": | |
| {"video": | |
| {"item": | |
| [ // 2 elements in Array | |
| { | |
| "vmap":{...}, | |
| "transcript":{...}, | |
| "beacon":{...} | |
| }, |
| // player is the MTVNPlayer.Player object created by the embed api | |
| player.on("stateChange:paused", function(event){ | |
| // we don't want to do this for flash | |
| if(MTVNPlayer.isHTML5Player){ | |
| if(!event.target.element.webkitDisplayingFullscreen){ | |
| alert("show your poster screen, we're not in full screen"); | |
| } | |
| } | |
| }); |
URL:
/config/:uri
{
"mediaGen": {
"vmap": {
// The stream url to play.
"uri": "http://streamurl.com",
// The duration of the stream (including ads, of course).| { | |
| "vmap:VMAP": { | |
| "@version": "1.0", | |
| "@xmlns:uo": "uo", | |
| "@xmlns:vmap": "vmap", | |
| "@xmlns:xsi": "xsi", | |
| "vmap:Extensions": { | |
| "uo:unicornOnce": { | |
| "@ttl": "600", | |
| "@contenturi": "http://api33-phx.unicornmedia.com/now/stitched/mp4/7b65c9c3-5342-4d95-8867-2a51d0d7cbbf/1d52fc9e-d747-4a9b-8ad3-aff289c377e7/3a41c6e4-93a3-4108-8995-64ffca7b9106/bbba6e67-349d-4de3-9e2a-28e7eed1c31a/content.mp4?oasid=477b95dd-35d5-437e-8ff2-97ff5f331d8d&umtp=0", |
| { | |
| "uri": "http://api39-phx.unicornmedia.com/now/stitched/mp4/7b65c9c3-5342-4d95-8867-2a51d0d7cbbf/1d52fc9e-d747-4a9b-8ad3-aff289c377e7/3a41c6e4-93a3-4108-8995-64ffca7b9106/bbba6e67-349d-4de3-9e2a-28e7eed1c31a/content.mp4?oasid=e493cc14-89c3-4cc0-8814-e191d1c1d2fa&umtp=0", | |
| "totalDuration": "686.266", | |
| "trackers": [{ | |
| "breakId": "0", | |
| "event": "firstQuartile", | |
| "url": "http://tracking.adprovider.qa.unicornapp.com/beacon/noe/firstQuartile", | |
| "timeToFire": 3 | |
| }, { | |
| "breakId": "0", |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>MTVNPlayer</title> | |
| <style> | |
| .MTVNPlayer { | |
| width: "100%"; | |
| height: "100%"; | |
| } | |
| </style> |
| { | |
| "feed": "xml/feed/feed_hills.xml", | |
| "mediaGen": "http://www.mtv.com/global/feeds/common/uber_mediaGenBase.jhtml?device=iPad&acceptMethods=hls,phttp&uri={uri}", | |
| "relatedFeed": "xml/feed/feed_hills.xml", | |
| "nielsenClientID": "us-400235", | |
| "nielsenReporterEnabled": true, | |
| "nielsenVideoCensusID": "b03", | |
| "networkPlayerName": "Site", | |
| "partnerPlayerName": "Partner", | |
| "viralPlayerName": "Syndicated", |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>MTVNPlayer</title> | |
| <style> | |
| .MTVNPlayer { | |
| width: "100%"; | |
| height: "100%"; | |
| } | |
| </style> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>MTVNPlayer</title> | |
| <style> | |
| .MTVNPlayer { | |
| width: "100%"; | |
| height: "100%"; | |
| } | |
| </style> |
| var config = { | |
| module:{ | |
| endslate: { | |
| "$": { | |
| "shim": true, | |
| "url": "http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" | |
| }, | |
| "mtvn-util": "http://media.mtvnservices.com/player/api/module/mtvn-util/latest/mtvn-util.min.js", | |
| "endslate-css": "http://media.mtvnservices.com/player/api/module/endslate/latest/style.css", | |
| "endslate": "http://media.mtvnservices.com/player/api/module/endslate/latest/endslate.min.js" |