2017 © Pedro Peláez
 

yii2-extension yii2-mediaelement

A complete HTML/CSS audio/video player built on top MediaElement.js and jQuery. For Yii2.

image

maksyutin/yii2-mediaelement

A complete HTML/CSS audio/video player built on top MediaElement.js and jQuery. For Yii2.

  • Tuesday, June 30, 2015
  • by maksyutin
  • Repository
  • 1 Watchers
  • 3 Stars
  • 122 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Yii2 mediaelement

A complete HTML/CSS audio/video player built on top MediaElement.js and jQuery. For Yii2., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist maksyutin/yii2-mediaelement "*"

or add, (*4)

"maksyutin/yii2-mediaelement": "*"

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

Usage

Once the extension is installed, simply use it in your code by :, (*6)

<?= maksyutin\mediaelement\AutoloadWidget::widget([
        'mediafile' => BaseYii::getAlias('@web').'/video/emailcap.mp4',
        'width' => 849,
        'height' => 478,
        'title' => 'Title',
        'modal' => true,
        'playerOptions' => [
            'defaultVideoWidth' => 480,
            'defaultVideoHeight' => 270,
            'keyActions' => '[]',
            'enableKeyboard' => true,
        ]
    ]);
    ?>

The Versions

30/06 2015

dev-master

9999999-dev

A complete HTML/CSS audio/video player built on top MediaElement.js and jQuery. For Yii2.

  Sources   Download

MIT

The Requires

 

extension yii2 video video player mediaelement audio player videoplayer audioplayer html video