jyoutube Easy intigration of Youtube videos and images in a webpage

  1. Requirements
  2. Usage
  3. Change log
  4. Resources for the jQuery plugin
  5. Alternative solution to this issue

This widget encapsulates the jQuery youtube plugin for loading and handling Youtube videos and images in an easy an simple way.

Requirements

Yii 1.1.6 or above...

Usage

  • extract the file under .../protected/extensions
  • put in a view a code blocks like the following...
<h2>Youtoube Example - video</h2>
<?php $this->widget('ext.youtube.JYoutube', array(    
    'youtubeId'=>'otIJRaxaknc',
)); ?><!-- youtoube -->

<h2>Youtoube Example - clickable image</h2>
<?php $this->widget('ext.youtube.JYoutube', array(    
    'type'=>'image',
    'width'=>'400',
    'height'=>'300',
    'enableImageClickEvent'=>true,
    'youtubeId'=>'kXD6Gtinvbc',
    'options'=>array(
        'autohide'=>TRUE,
        'autoplay'=>TRUE,
        'showinfo'=>TRUE,
        )
)); ?><!-- youtoube -->

<h2>Youtoube Example - only image</h2>
<?php $this->widget('ext.youtube.JYoutube', array(
    'id'=>'youtube_1',
    'type'=>'image',
    'width'=>'300',
    'height'=>'200',
    'youtubeId'=>'DX1iplQQJTo',
)); ?>

Change log

Version 1.0
  • initial release
Version 1.1
  • added demo application
  • added minified javascript

Resources for the jQuery plugin

Alternative solution to this issue

5 0
6 followers
2 276 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: volkmar
Created on: Apr 9, 2011
Last updated: 12 years ago

Downloads

show all

Related Extensions