According the the documentation an Activity object can be initialized
with MediaItems via the opensocial.Activity.Field.MEDIA_ITEMS field.
I have been unable to get any media item to show up -- does anyone
know of any kinds of restrictions imposed on this functionality?
Here is the code I'm currently using
var miParams = {};
miParams[opensocial.MediaItem.Field.TYPE] =
opensocial.MediaItem.Type.IMAGE;
var mediaItem = opensocial.newMediaItem('image/jpeg', jpgURL,
miParams);
var aParams = {};
aParams[opensocial.Activity.Field.TITLE] = 'New Barcode';
aParams[opensocial.Activity.Field.BODY] = 'Body';
aParams[opensocial.Activity.Field.MEDIA_ITEMS] = [mediaItem];
var activity = opensocial.newActivity(aParams);
opensocial.requestCreateActivity(activity);
--
You received this message because you are subscribed to the Google Groups
"orkut Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en.