August 17, 2007
OK, got subversion installed, along with tortoise svn, which adds svn commands into windows explorer. I’m a little bit suprised that it (svn) doesn’t have a ‘proper’ interface – i was expecting something along the lines of visual source safe. I guess though that doing everything in windows explorer makes sense.
Anyway, the point of doing this was to get the movie playing stuff in. Let’s just try that command line before trying to work out how to do anything… it was
ruby script/plugin install svn://rubyforge.org/var/svn/flashplayrhelpr
Well, it did *something*. I got a load of stuff copied over, but then a cryptic message:
Exported revision 14.
Plugin not found: [“svn://rubyforge.org/var/svn/flashplayrhelpr”]
What does that mean – do i have it or not? It was supposed (according to this guide) to make a folder called swf in public, but it didn’t. Goddammit, why isn’t anything ever easy? grrrr. ok, chill. The guide has a backup plan if the files don’t appear, which is to run this:
which apparently makes the viewer available to use. Hmm. It didn’t complain when i ran this, but it didnt say it had done anything either. However when i did rake blahblah:install it complained that it couldn’t find blahblah so i guess it’s there in some form. Anyway, let’s try and use it.
I put this in my standard partial, which is the basis for all templates in my app:
then this in my movie/show view page:
<%= flv_player :file => “/data/movies/feynman.flv” %>
Here goes. Nope – i get this error message
undefined method `flv_player’ for #<#<Class:0x4815ad4>:0x4815aac>
which suggests it didn’t install.
Looking back at the messages, i think that the flash_player did install, but flashplayrhelper, which is a seperate plugin didn’t.
…some time passes…
Got it! After a helpful suggestion from the maker of flashplayrhelpr, Farooq Ali Farooq, I added the svn exe to my path variable, and forced reinstall – worked first time! Good old Feynman lecturing away there. Awesome.
There’s a little bit of tidying up required with the movie – it would be nice to be able to edit the associated details (title, summary etc) after posting for example. This isn’t essential though – what is essential is to be able to convert other video formats to flash video, so people can upload an avi, wmv etc. This is what YouTube does – you can upload various formats but everything is displayed in flv format.
There’s quite a bit of pre-requisites but all stuff that would be useful i think: It seems perfect for my needs, dan even includes code for making a thumbnail. I’ll have a go with this (next post).