-
Notifications
You must be signed in to change notification settings - Fork 0
FLV Player Library
FLV Player Class to play the video flash on your application. Download here: http://www.dwi.web.id/public/shared/ci_flv_player.zip
*-------------------------------------------------------------------------------------------------------- INSTALLATION: check out http://www.dwi.web.id/blog/post/library-codeigniter-untuk-memutar-video-flv *--------------------------------------------------------------------------------------------------------
-
Unzip ci_flv_player.zip in a local folder
-
Copy the files INSIDE the folder ci_flv_player in your CodeIgniter installation directory
-
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)
-
On your controller put this code: $this->load->library('flvplayer');
-
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:
-
- 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/
-
- 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