root/indytube/tags/plumi-0.1-3/INSTALL.plone

Revision 191, 2.9 kB (checked in by andy, 18 months ago)

update plone install doc

Line 
10. Setup indytube.conf - see README and INSTALL
2   Its helpful to know where the log files are being written so you can watch them , as you run and configure indytube
3
41. Setup the configuration file indytube.conf so that it searches Plone's external storage file path
5This is controlled by VIDEO_FILE_DIRECTORY. It will walk recursively down this directory, and pick up
6every eligble file. Eligble in this case means any file ending with an extension define
7in CONVERT_THESE in the [encoder]
8eg
9[paths]
10VIDEO_FILE_DIRECTORY=/opt/instances/zope-testing/var/files/Members
11FLV_FILE_DIRECTORY=/var/www/flv-files/
12
13# The next section is where you set indytube to find the Cheetah template (the meta-HTML)
14and where to output the files , and what extension they will have.
15
16INCLUDE_FILE_DIRECTORY=/opt/instances/zope-testing/var/files/Members
17INCLUDE_FILE_SUFFIX=.flv.inc
18INCLUDE_TEMPLATE=/opt/indytube/plumi.template
19
20all transcoded video go into a web-accessible area, eg FLV_FILE_DIRECTORY
21
222. Setup apache2 to serve these .flv files, from FLV_FILE_DIRECTORY
23
24Possible virtual host stanza for apache2
25NameVirtualHost 66.135.41.120:80
26<VirtualHost 66.135.41.120:80>
27ServerName flv.engagemedia.org
28ServerAdmin webdev@engagemedia.org
29DocumentRoot /var/www/flv-files
30DirectoryIndex index.html index.htm index.shtml index.cgi index.php
31ErrorLog /var/log/apache2/flv-files-error.log
32LogLevel warn
33CustomLog /var/log/apache2/flv-files-access.log combined
34</VirtualHost>
35
363. Make sure the template is referencing the correct URL paths to get the files, flowplayer, cortado applet etc
37Again, this is controlled by the indytube.conf file
38
39eg
40[urls]
41FLOWPLAYER_LOCATION=http://testing.engagemedia.org/flowplayer/FlowPlayer.swf
42VIDEO_SERVER_URL=http://flv.engagemedia.org/
43SPLASH_IMAGE_BASE=http://testing.engagemedia.org/flowplayer/
44SPLASH_IMAGE_FILE=Play_v2_trans.png
45
46So, you need to copy FlowPlayer.swf (or whatever filename you use) to FLOWPLAYER_LOCATION
47note , you can use different virtual host names if you like. So you can serve the flowplayer swf from
48one app server, and use another as the reference for downloading/streaming videos (VIDEO_SERVER_URL)
49(or not. you can just use apache2 for both)
50
51The is image referenced in SPLASH_IMAGE_FILE should be copied to the virtual host referenced by VIDEO_SERVER_URL
52
53Note: SPLASH_IMAGE_FILE is actually loaded from the web relative to VIDEO_SERVER_URL , not SPLASH_IMAGE_BASE
54This needs correcting in the source, flowplayer changed since the confg var names was initially choosen
55
56
574. Fullscreen mode in flowplayer.
58  Install fullscreen.js/html and swfobject.js into the VIDEO_SERVER_URL virtual host
59  Configure fullscreen.js to use the correct virtual host url to open fullscreen.html
60  Configure fullscreen.html to be the html you want to display when the user watches the movie in "fullscreen" mode
61
62eg to do steps 3 and 4 you might
63$ sudo cp fullscreen.js fullscreen.html swfobject.js ~/src/flowplayer/FlowPlayer.swf /var/www/flv-files/
64
65--
66andy@engagemedia.org
Note: See TracBrowser for help on using the browser.