Here's an rfc patch which adds basic html5 and flash player support. It's
modeled after the Video for Everybody page
http://camendesign.com/code/video_for_everybody. Even though that page
indicates that fallback to flash should happen automatically if the browser
doesn't support html5, my firefox fails to do that. To work around this I made
the selection explicit to the user.
The flashplayer needs to be configured with the full URL of the file to play. I
failed to find a good way to find that info in the code (nb. I run freewo
behind a forwarding https->http proxy, so it would have to take some client
side scripting to get at this info.) I solved this by adding a new config
WEBSERVER_URLROOT = "https://WHATEVER.net"
The code could do with some cleaning up if we want to add it, but right now it
at least works as intended. Comments welcome. My python skills are close to
nil, so improvements in that area are welcome too.
An improvement I want to do is to use the right poster image for the movies. I
guess that means either using the cover info from the fxd, or the thumbnail if
available. Any pointer to code showing how to do that would be appreciated.
A futher improvement is to use the right width and height info. How do I get at
that info? I guess I can get it from the file (using kaa.metadata, I guess),
but I have a fair amount of fxd's which points at mp4 files on the net and I
suspect there's support funtions in freevo for this already. Can an fxd host
that info? (I could pre-populate the fxd's with that info out of band if need