Wednesday, November 12, 2008

Learning how to use BRisa through code

For the brave users who hate to read documentation or long texts:

Basic dictionary:
  • media server: hosts media
  • media renderer: plays media
  • control point: selects media from a server and tells a renderer to play it
  • brisa: provides a server and a renderer

Basic procedure:
  1. Don't panic
  2. Configure the media server with your music, picture and video folders (brisa-configuration-tool)
  3. Start your media server (brisa-media-server)
  4. Start a media renderer (optional)
  5. Start a control point
  6. On the control point interface, select your media server
  7. On the control point interface, select a media renderer (perhaps yours, if you done step 3)
  8. Use the controls on the control point interface: play, stop, pause, next, previous and be happy

Basic procedure (with commands):
$ svn co https://garage.maemo.org/svn/brisa/tags/python-brisa-0.7.1
$ svn co https://garage.maemo.org/svn/brisa/tags/brisa-configuration-tool-0.1.0
$ cd python-brisa-0.7.1
$ sudo python setup.py install
$ cd ../brisa-configuration-tool-0.1.0
$ sudo python setup.py install

Select your media folders on the audio, video and pictures sections:
$ brisa-configuration-tool
Save, exit

Run your media server
$ brisa-media-server

Done! Just use a control point to select media and a media renderer to play the selected media.

Control points are short in the market. If you own a N800/N810 there are two I'd recommend: Media Streamer and Canola UPnP.

Brisa provides a media renderer, which can be run on any machine on the local network. If you want to use it, just type in:
$ brisa-media-renderer
You can naturally want to play media on another machine. Just follow the same steps above for installing and then run brisa-media-renderer on the machine.





For the brave who want to follow/test latest brisa:


Getting latest BRisa:
$ svn co https://garage.maemo.org/svn/brisa/trunk
$ cd python-brisa
$ sudo python setup.py install
$ cd ../brisa-configuration-tool
$ sudo python setup.py install

Select your media folders on the audio, video and pictures sections:
$ brisa-configuration-tool
Save, exit

Running your media server
$ brisa-media-server

Running a media renderer
$ brisa-media-renderer




Help can be found at #brisa on irc.freenode.org.

Good luck and have fun!

0 comentários: