2017 © Pedro Peláez
 

yii2-extension yii2-widget-videojs

An Yii2 widget for saying hello to videojs

image

lulubin/yii2-widget-videojs

An Yii2 widget for saying hello to videojs

  • Saturday, December 3, 2016
  • by lulubin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

1.Install

composer require --prefer-dist lulubin/yii2-widget-videojs "dev-master", (*1)

2.Usage

 [
            'class' => 'video-js vjs-default-skin vjs-big-play-centered',
            'controls' => true,
            'preload' => 'auto',
            'width' => '420',
            'height' => '315',
            'data' => [
                'setup' => [
                    'autoplay' => true,
                    'techOrder' =>['flash', 'html5']
                ],
            ],
        ],
        'tags' => [
            'source' => [
                ['src' => 'rtmp://cp67126.edgefcs.net/ondemand/&mp4:mediapm/ovp/content/test/video/spacealonehd_sounas_640_300.mp4', 
                'type' => 'rtmp/mp4']
            ]
        ]
    ]);
?>

<?php
    echo \lulubin\videojs\VideoJsWidget::widget([
        'options' => [
            'class' => 'video-js vjs-default-skin vjs-big-play-centered',
            'poster' => "http://www.videojs.com/img/poster.jpg",
            'controls' => true,
            'preload' => 'auto',
            'width' => '970',
            'height' => '400',
        ],
        'tags' => [
            'source' => [
                ['src' => 'http://vjs.zencdn.net/v/oceans.mp4', 'type' => 'video/mp4'],
                ['src' => 'http://vjs.zencdn.net/v/oceans.webm', 'type' => 'video/webm']
            ],
            'track' => [
                ['kind' => 'captions', 'src' => 'http://vjs.zencdn.net/vtt/captions.vtt', 'srclang' => 'en', 'label' => 'English']
            ]
        ]
    ]);
?>

The Versions

03/12 2016

dev-master

9999999-dev https://github.com/lulubin/yii2-widget-videojs

An Yii2 widget for saying hello to videojs

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget videojs

22/11 2016

1.0.0

1.0.0.0 https://github.com/lulubin/yii2-widget-videojs

An Yii2 widget for saying hello to videojs

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 videojs