How to stream flv with apache and jwplayer in linux server?

Filed in Apache 0 comments

Today i want to show you how you can enable streaming flv encoded videos in jwplayers in your own web site
First i need to tell you that you need root access to the server and it is not just want has to be done just only with your website
so you need to modify the web server (apache) in your server and add flv handler to its configuration and also modify the jwplayer.php
ok lets get started
ssh to your linux server with root

1-First wi will modify apache webserver by adding and compiling mod_flx modul:

Download mod_flx:

wget http://people.apache.org/~pquerna/modules/mod_flvx.c

Compile and install modulewith your apache webserver:

apxs -i -a -c mod_flvx.c

the following should be added automatically after compiling this module with apache into httpd.conf:

LoadModule flvx_module modules/mod_flvx.so

you should also add the following flv handler to httpd.conf manually:

AddHandler flv-stream .flv

after that you should restart apache to make sure the changes occurred:

service httpd restart

2:Second we will show you how to modify the flash player to enable streaming for it(in this case JwPlayer):

find /jw_player_5/jw_player5.php and open it
in the lines containing the player parameter in if statement”if($vid_file)” just add the folloing in its block of code in curly braces:

$swfobj->addVar('provider','http');

then save the file and test your video
so you are finished

Happy streaming ;)

Related posts:

  1. MaxClients in Apache
  2. how to optimize apache?
Posted by voshka   @   10 May 2010 0 comments

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Previous Post
«
Next Post
»
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone