Class opensocial.MediaItem
Represents images, movies, and audio.
Create a MediaItem object using the
opensocial.newMediaItem() method.
Defined in: opensocial.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
getField(key, opt_params)
Gets the media item data that's associated with the specified key.
|
|
|
setField(key, data)
Sets data for this media item associated with the given key.
|
Method Detail
{String}
getField(key, opt_params)
Gets the media item data that's associated with the specified key.
- Parameters:
- {String} key
- The key to get data for; see the Field class for possible values
- opt_params
- Returns:
- {String} The data
setField(key, data)
Sets data for this media item associated with the given key.
- Parameters:
- {String} key
- The key to set data for
- {String} data
- The data to set