Gigya Job Openings

mediaItem JS

Skip to end of metadata
Go to start of metadata

Description

 

A JSON object representing an audio, video or picture object which is embedded in a comment.  Must be enabled in the Comments Settings of the Gigya Console.

Field NameTypeDescription
typestringThe content type - may be "video", "image" or "audio".
urlstringThe item's URL.
providerstringProvider name in lowercase.
titlestringThe title given to the media item.
descriptionstringThe description given to the media item.
htmlstringAutoplay address.
widthint
Width of the item in pixels.
heightintHeight of the item in pixels.
thumbnailURLstringURL of the item's thumbnail.
thumbnailWidthintWidth in pixels of the item's thumbnail.
thumbnailHeightintHeight in pixels of the item's thumbnail.
providerIconURLstringURL of the item's provider.

Note: A field that does not contain data, will not appear in the object.

 

Example Object

{
"type":"video",
"url":"http://vimeo.com/80209061",
"provider":"vimeo",
"title":"BIG GAME",
"description":"Bobo, a lonely monster, is set to spend yet another birthday alone.",
"html":"<iframe src=\"http://media.embed.ly/1/frame?url=http%3A%2F%2Fvimeo.com%2F80209061&width=640&autoplay=true&key=500dfdcd557d4f67b34db93e2a75f476&height=360\" width=\"640\" height=\"360\" border=\"0\" scrolling=\"no\" frameborder=\"0\"></iframe>",
"height":360,
"width":640,
"thumbnailUrl":"http://b.vimeocdn.com/ts/456/090/456090978_1280.jpg",
"thumbnailWidth":1280,
"thumbnailHeight":720,
"providerIconUrl":"https://cdns.gigya.com/gs/i/comments2/mediaProviders/vimeo.png"
}