2009-03-30 Fixed Tomcat 6.0.18 jsp tag syntax change, added detailed installation.txt document
2009-03-22 Added The Onion, Vimeo.com, ČT24 Czech TV (requested by reffelo)
Webfeeds to RSS conversions (Tomcat web application)
http://koti.mbnet.fi/akini/ps3/areenafeed.html
http://koti.mbnet.fi/akini/ps3/installation.txt
Hello,
There is a very good, for finnish people interest really, http://areena.yle.fi media service in Finland. We use it extensively and are happy with it.
Unfortunately they don't have rss formatted search page, so I made an experiment and created a conversion module (Java + .jsp page), hosted in a localhost Tomcat http service. Here is two static files after a conversion run.
Valid and simple rss feed supported by PS3MS server
http://koti.mbnet.fi/akini/ps3/rss-simple_video.xml
http://koti.mbnet.fi/akini/ps3/rss-simple_audio.xml
More complete and valid rss feed, supported by PS3MS server
http://koti.mbnet.fi/akini/ps3/rss_video.xml
note: FF3.0x is unable to render it due to a bug in enclosure file link, it must always use http protocol but YleAreena source links are mms protocol. IE can render it fine but even it cannot show mms enclosure attachment links.
You can test sources with the following web.conf settings. My box: WinXP, VLC 0.9.8a
- Code: Select all
## Yle Areena
videofeed.Web=http://koti.mbnet.fi/akini/ps3/rss_video.xml
videofeed.Web=http://koti.mbnet.fi/akini/ps3/rss-simple_video.xml
audiofeed.Web [vlcaudio]=http://koti.mbnet.fi/akini/ps3/rss-simple_audio.xml
XMB menu creates a folder for each feed source. Last folder name is taken from the <title> tag in a rss.xml document
Video menu: Web / Yle Areena :: Tänään otsikoissa
Video menu: Web / Yle Areena :: Reinikainen
Audio menu: Web [vlcaudio] / Yle Areena :: Kulttuuripeili
Media files use .wmv and .wma formats, I could not get last entry, radio, work unless put [vlcaudio] tag. MPlayer Web was my default radio web streamer, it failed. VLC did better job althought it crashed several times....not uncommon to see with vlc streamer.
Feature Request: rss videofeed and audiofeed conversion plugin system to web.conf file
We must run an another external http service to convert proprietary media services to rss.xml format. Its fine to us who has a dedicated web service available, but not all like it and is unnecessary overhead. PS3MS could very very easily support a simple plugin system for conversion tasks.
Here is a concept how we could implement this to an existing web.conf file. Registered class should implement a simple interface to get feed.areena1.* values in a hashmap and return a (simple) rss format.
- Code: Select all
## web.conf file: register feed source
feed.areena1.type=video
feed.areena1.folder=Web,Yle Areena
feed.areena1.class=com.mypackage.areenafeed.YleAreenaToRSSFeed
feed.areena1.parameter.source=http://areena.yle.fi/hae?l=3&keyword=Ajankohtainen+Kakkonen
feed.areena1.parameter.quality=hi
feed.areena1.parameter.somekey=somevalue
feed.areena1.parameter.<anykey*>=value
## Interface mockup to be implemented by conversion classes
public interface RSSFeedSource {
// init("areena1", params), key-value pairs not including prefix "feed.areena1." in a key.
public void init(String name, Map<String,String> params);
public String createFeed(); // return a simple rss.xml document
public void createFeed(OutputStream out); // or should we write to a stream?
// this may update the initial feed object to point to the exact videofeeds.
// Example: youtube.com/watch?v=xxxxx rss links point to the video html page,
// this method parses a url link to the actual .flv video link. Returned
// object is then given to vlc webstreamer. Do nothing if initial object link was fine.
// This is two-step optimization for dynamic rss documents
// 1st step: createFeed creates rss.xml document and files are listed in XMB
// 2nd step: User clicked a video file on XMB, resolve link to .flv/.mp4/.any video file
public FeedObject resolve(FeedObject feedObj);
}
