I would like to know too, if anyone can include Media (Images) in an
Activity entry... I have not been able to get any images to appear.
This is the code that I've tried:

var mediaType = opensocial.Activity.MediaItem.IMAGE; // this is where
it's failing
var mediaItem = opensocial.newActivityMediaItem(mediaType, 'http://
mydomain.com/myimage.gif');
var activity = opensocial.newActivity(stream, title, {'url' : link,
'media_items': [mediaItem] });
opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, getActivities);

I get a JS error saying that opensocial.Activity.MediaItem.IMAGE has
no properties... what's up with that?

Jay Hoover (Snapvine) wrote:
> Hey everyone,
>
> Does anyone have an example of using MediaItem in an activity entry?
> I've been playing around with this API and have not been able to get a
> media item to work with Orkut. The document is still a bit sparse in
> this area, but perhaps someone out there has figured it out?
>
> Also, does anyone has any information on what media is supported in
> the activity?
> any
> How many media items can you add?
> Can you add mp3? FLV? JPG?
>
> -jay


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Developers" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to