FLV Player Class to play the video flash on your application, by http://www.dwi.web.id/.
Download here: http://www.dwi.web.id/public/files/ci_flv_player.zip
*————————————————————————————————————————————————————
INSTALLATION:
check out http://www.dwi.web.id/blog/post/library-codeigniter-untuk-memutar-video-flv *————————————————————————————————————————————————————
1) Unzip ci_flv_player.zip in a local folder
2) Copy the files INSIDE the folder ci_flv_player in your CodeIgniter
installation directory
3) The files INSIDE is
- system/application/libraries/Flvplayer.php (CI’s Library for FLV Player)
- public/app/mediaplayer.swf (the player for flv)
- public/app/swfobject.js (the script for atributes)
4) On your controller put this code:
$this->load->library(‘flvplayer’);
5) And this is an example for the view script:
<?php echo $this->flvplayer->rendervideo(‘public/images/video.flv’, ‘public/images/video.jpg’, ‘300’, ‘150’); ?>
notes:
- public/images/video.flv is an example for your video location
- public/images/video.jpg is an example for your image location
- 300 is an example for your video width
- 150 is an example for your video height
* @Thanks to:
* 1) Includes Jeroen Wijering’s FLV Player (Creative Commons “BY-NC-SA” License) v3.12
* Website: http://www.jeroenwijering.com/?item=Flash_Video_Player
* License: http://creativecommons.org/licenses/by-nc-sa/2.0/
* 2) Includes Geoff Stearns’ SWFObject Javascript Library (MIT License) v1.5
* Website: http://blog.deconcept.com/swfobject/
* License: http://www.opensource.org/licenses/mit-license.php
