jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Video

Hide navigator Hide source code

Methods


<button id="btnOpenDialog">Show Demo</button>

<?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?>
  <video controls="controls" id="video1" width="400" height="275">
    <source src="http://cdn.wijmo.com/movies/wijmo.theora.ogv" type='video/ogg; codecs="theora, vorbis"'>
    <source src="http://cdn.wijmo.com/movies/wijmo.mp4video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
    HTML5 is required to see this video.
  </video>

  <input type="button" class="btns" onclick="<?php echo YsUIVideo::play('#video1')  ?>" value="Play"/>
  <input type="button" class="btns" onclick="<?php echo YsUIVideo::pause('#video1')  ?>" value="Pause"/>
<?php echo YsUIDialog::endWidget() ?>
  
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnOpenDialog')
  ->execute(
    YsUIButton::build('.btns'),
    YsUIDialog::build('#dialogId')
      ->_modal(true)
      ->_draggable(false)
      ->_width(420)
      ->_close(
        YsJsFunction::execute(YsUIVideo::pause('#video1'))
      )
      ->_buttons(array(
          'Ok' => new YsJsFunction('alert("Hello world")'),
          'Close' =>  new YsJsFunction(YsUIDialog::close('this')))
       ),
    YsUIVideo::build('#video1')
  );
?>

Comments

  • Support requests, bug reports, and off-topic comments will be deleted without warning.

blog comments powered by Disqus

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net