→   Yii Jouele widget Fork me on GitHub

Yii Jouele widget

Jouele is a simple and beautiful audio player for the web by Ilya Birman.

Get

Download as a zip file or check it out on Github.

Installation

Unpack to protected/extensions.

Usage

<?php $this->widget('ext.jouele.Jouele', array(
    'file' => $model->file,
    'name' => $model->name,
    'htmlOptions' => array(
        'class' => 'jouele-skin-silver',
     )
));?>
<?php $this->widget('ext.jouele.Jouele', array(
   'file' => '/patch/to/file.mp3',
   'name' => 'Carbon — Station Blue',
   'htmlOptions' => array(
       'class' => 'jouele-option-progress-when-playing',
    )
));?>
<?php $this->widget('ext.jouele.Jouele', array(
  'file' => $model->file,
  'name' => $model->name,
  'htmlOptions' => array(
      'class' => 'jouele-skin-dark',
   )
));?>

Something

<?php $this->widget('ext.jouele.Jouele', array(
    'file' => $model->file,
    'name' => $model->name,
    'tag'  => 'p',
    'htmlOptions' => array(
        'class' => 'jouele-skin-dark',
    )
));?>