-
Notifications
You must be signed in to change notification settings - Fork 0
FLV Player Library
[size=4]Note: links to developer's site and file download are dead. Please update with new links[/size]
FLV Player Class to play the video flash on your application, by http://www.dwi.web.id/. Download here: [strike]http://www.dwi.web.id/public/files/ci_flv_player.zip[/strike]
Mirror: http://pixelsandcode.net/downloads
*-------------------------------------------------------------------------------------------------------- INSTALLATION: [strike]check out http://www.dwi.web.id/blog/post/library-codeigniter-untuk-memutar-video-flv[/strike] *--------------------------------------------------------------------------------------------------------
-
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