machour / yii2-radionomy-player
A wrapper for Radionomy player
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/jquery-radionomy: *
This package is auto-updated.
Last update: 2024-11-16 03:26:33 UTC
README
A Yii2 wrapper for the jquery-radionomy library.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist machour/yii2-radionomy-player "*"
or add
"machour/yii2-radionomy-player": "*"
to the require section of your composer.json
file.
This package will also install the jquery-radionomy bower package.
Usage
<?= RadionomyPlayer::widget(['url' => 'your-radio-id']); ?>
Available Options
Breakpoints
This library allow you to define breakpoints, which will be watched for when the window gets resized, in order to reload the player with an adequate layout. In other words, you can give the player responsive behavior.
<?= RadionomyPlayer::widget([ 'url' => 'your-radio-id', 'breakpoints' => [ 400 => 'mobile', 800 => 'medium', 900 => 'horizontal', ]); ?>