Google Site SearchFN Site Search FN Blog Login FN Blog Login
 
 

TUTORIAL: Helix Player

by Thomas Chung on Dec 27, 2003

In this tutorial you will learn how to build Helix Player rpm package and install it for Fedora Core 1. Helix Player is the Helix Community's open source media player for consumers. It's availalbe for FREE under the RPSL (RealNetworks Public Source License) Agreement and Binary EULA (End User License Agreement).

Download a Helix Player binary compiled for Linux using GCC 3.2 from following URL:

http://forms.helixcommunity.org/helixdnaclient/

In this turotial, we will download hxplay-linux-2.2-libc6-gcc32-i586.tar.gz for Source tarball for 01/13/04*.

It's located at Platform/Target starts with linux-2.2-libc6-gcc32-i586 under HelixPlayer column.
Screenshot: hxplay-tar.png

You will need to agree on RPSL LICENSE AGREEMENT and EULA LICENSE AGREEMENT before you can download it.

*UPDATE: As of 2004-01-13, "Unexpected error code (0x800400c9)" issue has been resolved.

##

Create rpmbuild directory if you haven't already.
Move the tarball to rpmbuild/SOURCES directory.

For a Gnome Destkop Icon, also download a custom built desktop file and
move it to rpmbuild/SOURCES directory as well.

[tchung@localhost download]$ mv hxplay-linux-2.2-libc6-gcc32-i586.tar.gz ~/rpmbuild/SOURCES/
[tchung@localhost download]$ mv helixplayer.desktop ~/rpmbuild/SOURCES/

##

Download a custom built spec file and move it to rpmbuild/SPECS directory.

[tchung@localhost download]$ mv HelixPlayer.spec ~/rpmbuild/SPECS/

##

Build binary rpm and source rpm with rpmbulid from rpmbuld/SPECS directory 

[tchung@localhost download]$ cd ~/rpmbuild/SPECS/
[tchung@localhost SPECS]$ ls
HelixPlayer.spec
[tchung@localhost SPECS]$ rpmbuild -ba HelixPlayer.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.20210
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /var/tmp/HelixPlayer-buildroot
+ mkdir -p /var/tmp/HelixPlayer-buildroot/usr/local
+ mkdir -p /var/tmp/HelixPlayer-buildroot/usr/bin
+ mkdir -p /var/tmp/HelixPlayer-buildroot/usr/lib/mozilla/plugins
+ mkdir -p /var/tmp/HelixPlayer-buildroot/usr/share/applications
+ mkdir -p /var/tmp/HelixPlayer-buildroot/usr/share/pixmaps
+ cd /home/tchung/rpmbuild/BUILD
+ rm -rf HelixPlayer-0.2.0.0
+ /bin/mkdir -p HelixPlayer-0.2.0.0
+ cd HelixPlayer-0.2.0.0
+ /usr/bin/gzip -dc /home/tchung/rpmbuild/SOURCES/hxplay-linux-2.2-libc6-gcc32-i586.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.20210
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd HelixPlayer-0.2.0.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cp -a HelixPlayer /var/tmp/HelixPlayer-buildroot/usr/local
+ ln -sf /usr/local/HelixPlayer/hxplay /var/tmp/HelixPlayer-buildroot/usr/bin
+ ln -sf /usr/local/HelixPlayer/mozilla/nphelix.so /var/tmp/HelixPlayer-buildroot/usr/lib/mozilla/plugins
+ ln -sf /usr/local/HelixPlayer/mozilla/nphelix.xpt /var/tmp/HelixPlayer-buildroot/usr/lib/mozilla/plugins
+ install -p -m644 /home/tchung/rpmbuild/SOURCES/helixplayer.desktop /var/tmp/HelixPlayer-buildroot/usr/share/applications
+ ln -sf /usr/local/HelixPlayer/share/helix_ico.xpm /var/tmp/HelixPlayer-buildroot/usr/share/pixmaps/helixplayer.xpm
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: HelixPlayer-0.2.0.0-20040106
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/HelixPlayer-buildroot
Wrote: /home/tchung/rpmbuild/SRPMS/HelixPlayer-0.2.0.0-20040106.src.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/HelixPlayer-0.2.0.0-20040106.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.18169
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd HelixPlayer-0.2.0.0
+ rm -rf /var/tmp/HelixPlayer-buildroot
+ exit 0
[tchung@localhost SPECS]$

##

Install binary rpm which was just created.

[tchung@localhost SPECS]$ sudo rpm -Uvh /home/tchung/rpmbuild/RPMS/i386/HelixPlayer-0.2.0.0-20040106.i386.rpm
Preparing...                ########################################### [100%]
   1:HelixPlayer            ########################################### [100%]
[tchung@localhost SPECS]$

##

Check the plugins from Mozilla.
Choose Help > About Plug-ins.

Screenshot: About Plug-ins

##

Test HelixPlayer in Mozilla from following URLs where many RealMedia formats can be found: 

http://www.nasa.gov/multimedia/videogallery/
http://www.jpl.nasa.gov/videos/
http://service.real.com/test/
http://www.npr.org/ (NPR Hourly News)

If you see a dialog asking how to handle RealVideo/RealAudio filetype format, type in '/usr/bin/hxplay'
as show below.