maksyutin / yii2-mediaelement
A complete HTML/CSS audio/video player built on top MediaElement.js and jQuery. For Yii2.
Package info
github.com/maksyutin/yii2-mediaelement
Language:JavaScript
Type:yii2-extension
pkg:composer/maksyutin/yii2-mediaelement
dev-master
2015-06-30 11:49 UTC
Requires
- yiisoft/yii2: ~2.0
This package is not auto-updated.
Last update: 2026-03-01 01:30:15 UTC
README
A complete HTML/CSS audio/video player built on top MediaElement.js and jQuery. For Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist maksyutin/yii2-mediaelement "*"
or add
"maksyutin/yii2-mediaelement": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= 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, ] ]); ?>