Hi John, There's currently no sure-fire way to determine if a link in a Tweet leads to renderable content or the disposition of that content as a picture or a video.
However, by using Tweet Entities ( http://dev.twitter.com/pages/tweet_entities ) you can get expanded information about many of the URLs presented in Tweets -- for some URLs like t.co-based URLs, they'll also be unshortened. Most API functions that return Tweet data respond to an additional query parameter, include_entities=true which expands the resource response to include the additional data nodes. A great additional thing you can do is keep up to date with the services that embed.ly supports ( by using their API every so often to update your list of their supported services: http://api.embed.ly/docs/service ) and leverage embed.ly to render rich content when its origin is identifiable by the tweet entities. @episod <http://twitter.com/episod> - Taylor Singletary On Tue, May 3, 2011 at 7:17 AM, John Carver <[email protected]>wrote: > Hi people. > > i wonder is there a way to determine if video or audio link inside > statuse body? especially when short ls provided? i mean is there a n > indication about? > > Any replies and thoughts would be appreciated. > > Thanks. > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: > http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk > -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
