Skip to content
World Wide Web Server edited this page Jul 4, 2012 · 10 revisions

[size=4][b][color=red]Note: links to developer's site and file download are dead. Please update with new links[/color][/b][/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]

[b]Mirror:[/b] [url=http://pixelsandcode.net/downloads]http://pixelsandcode.net/downloads[/url]

*-------------------------------------------------------------------------------------------------------- INSTALLATION: [strike]check out http://www.dwi.web.id/blog/post/library-codeigniter-untuk-memutar-video-flv[/strike] *--------------------------------------------------------------------------------------------------------

  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
Clone this wiki locally