2017 © Pedro Peláez
 

library yii2-jplayer-widget

yii2-jplayer-widget

image

xj/yii2-jplayer-widget

yii2-jplayer-widget

  • Thursday, November 30, 2017
  • by xjflyttp
  • Repository
  • 2 Watchers
  • 4 Stars
  • 20,366 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 5 Versions
  • 14 % Grown

The README.md

yii2-jplayer-widget

composer.json

"require": {
        "xj/yii2-jplayer-widget": "*"
},

example

 [
        'm4a' => yii\helpers\Url::base() . '/upload/jplayer-example/Miaow-07-Bubble.m4a',
        'oga' => yii\helpers\Url::base() . '/upload/jplayer-example/Miaow-07-Bubble.ogg',
    ],
]);

//Audio Player
echo xj\jplayer\AudioWidget::widget([
    'mediaOptions' => [
        'title' => "Bubble",
        'm4a' => yii\helpers\Url::base() . '/upload/jplayer-example/Miaow-07-Bubble.m4a',
        'oga' => yii\helpers\Url::base() . '/upload/jplayer-example/Miaow-07-Bubble.ogg',
    ],
    'jsOptions' => [
        'supplied' => "m4a, oga",
        'wmode' => "window",
        'smoothPlayBar' => true,
        'keyEnabled' => true,
        'remainingDuration' => true,
        'toggleDuration' => true
    ],
]);

//Video Player
echo xj\jplayer\VideoWidget::widget([
    'tagClass' => 'jp-video jp-video-360p',
    'skinAsset' => 'xj\jplayer\skins\PinkAssets', //OR xj\jplayer\skins\BlueAssets
    'mediaOptions' => [
        'title' => "Big Buck Bunny",
        'poster' => yii\helpers\Url::base() . '/upload/jplayer-example/Big_Buck_Bunny_Trailer_480x270.png',
        'm4v' => yii\helpers\Url::base() . '/upload/jplayer-example/Big_Buck_Bunny_Trailer.m4v',
        'ogv' => yii\helpers\Url::base() . '/upload/jplayer-example/Big_Buck_Bunny_Trailer.ogv',
        'webmv' => yii\helpers\Url::base() . '/upload/jplayer-example/Big_Buck_Bunny_Trailer.webm',
    ],
    'jsOptions' => [
        'supplied' => "webmv, ogv, m4v",
        'size' => [
            'width' => "640px",
            'height' => "360px",
            'cssClass' => "jp-video-360p"
        ],
        'smoothPlayBar' => true,
        'keyEnabled' => true,
        'remainingDuration' => true,
        'toggleDuration' => true
    ],
]);
?>

The Versions

30/11 2017

dev-master

9999999-dev

yii2-jplayer-widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

02/07 2015

2.9.0.1

2.9.0.1

yii2-jplayer-widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

01/07 2015

2.7.0.3

2.7.0.3

yii2-jplayer-widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

19/01 2015

2.7.0.2

2.7.0.2

yii2-jplayer-widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

03/11 2014

2.7.0.1

2.7.0.1

yii2-jplayer-widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp