Saturday, 15 June 2013

Brightcove Media API Access-Control-Allow-Origin -


I'm trying to call Media ADI but I'm getting access-control-permission-generation error.

I appending 'jsoncallback =?' To my URL (JSONP) and it now returns the JSON file but your browser is trying to interpret it as JavaScript and throw an error

  (function () { Var mediaAPI = "http: / /api.brightcove.com/services/library?jsoncallback="; $ .getJSON (mediaAPI, {Command: "find_video_by_id", video_id: "2472866007001", video_fields: "videoStillURL, thumbnailURL", Media_delivery: "http", token: "4kDMVfqenhDk_uU2MvV8fioVrHsHwiKWCLFuxZumIq7fSa3wyRkTNw ..", format: "json"}) .done (function) {var obj = jQuery.parseJSON (data); Warning (obj.name === "videoStillURL" );});}) (); "Text" itemprop = "text"> 

After

No comments:

Post a Comment