/***
USAGE:
VideoFeed12SecondsTV(feed, keyword)
PARAMETERS:
feed : uri
link to the RSS feed of a 12seconds account
(optional) keyword : str
keyword to look for in the title of the feed
***/
var feed = $0 ?? $feed ?? 'http://12seconds.tv/channel/sarahmcarr/feed';
var keyword = $1 ?? $keyword;
foreach(var item in web.xml(feed)['channel/item'] where !keyword || string.contains(xml.text(item['title']), keyword, true)) {
var title = xml.text(item['title']);
var link = uri.parse(xml.text(item, 'link'));
var id = link.path[#link.path - 1];
<h2> title </h2>
<object
data="http://embed.12seconds.tv/players/remotePlayer.swf"
width="430" height="360"
type="application/x-shockwave-flash"
>
<param name="movie" value="http://embed.12seconds.tv/players/remotePlayer.swf" />
<param name="FlashVars" value=('vid=' .. id) />
<embed
flashvars=('vid=' .. id)
width="430" height="360"
src="http://embed.12seconds.tv/players/remotePlayer.swf" >
</embed>
</object>
}
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by