2017 © Pedro Peláez
 

yii2-extension yii2-radionomy-player

A wrapper for Radionomy player

image

machour/yii2-radionomy-player

A wrapper for Radionomy player

  • Friday, June 3, 2016
  • by machour
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

A Yii2 wrapper for the jquery-radionomy library., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist machour/yii2-radionomy-player "*"

or add, (*4)

"machour/yii2-radionomy-player": "*"

to the require section of your composer.json file., (*5)

This package will also install the jquery-radionomy bower package., (*6)

Usage

<?= RadionomyPlayer::widget(['url' => 'your-radio-id']); ?>

Available Options

Name Description Default value
url Your radio id (required)
autoplay Whether to auto play the radio or not 0
volume Your radio id (required)
type Layout type. Valid types are: horizontal / medium / mobile horizontal
color1 Background color for radio overlays #f1ffc4
color2 Foreground color for radio overlays #ff844f
breakpoints An array of width => type values. See explanations below. []

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., (*7)

<?= RadionomyPlayer::widget([
    'url' => 'your-radio-id',
    'breakpoints' => [
        400 => 'mobile',
        800 => 'medium',
        900 => 'horizontal',
]); ?>

The Versions

03/06 2016

dev-master

9999999-dev https://github.com/machour/yii2-radionomy-player

A wrapper for Radionomy player

  Sources   Download

MIT

The Requires

  • bower-asset/jquery-radionomy *

 

yii2 radio radionomy

03/06 2016

1.0.0

1.0.0.0 https://github.com/machour/yii2-radionomy-player

A wrapper for Radionomy player

  Sources   Download

MIT

The Requires

  • bower-asset/jquery-radionomy *

 

yii2 radio radionomy