Opensocial.newMediaItem()

Opensocial.newMediaItem()

Description:
Creates a media item. Parameters include mt (type of media, specified by opensocial.MediaItem.Field.*), url (location of media, a string), and opt_params (optional parameters specifying additional fields).

Returns:
opensocial.MediaItem

Object:
Opensocial

Example:

var myVideo = opensocial.newMediaItem(opensocial.MediaItem.Field.VIDEO,"http://w3mentor.com/Video.mpg")

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.