com web/pres2: play/pause by clicking on the video: pres2reveal

[email protected] (Rasmus Lerdorf) Sun, 16 Sep 2018 22:54:22 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    3347f73c4a42bb6054525901dcfca3db705675c3
Author:    Rasmus Lerdorf <[email protected]>         Sun, 16 Sep 2018 15:54:22 -0700
Parents:   e7969484b9aa75e11d6f610a81a8b646d2bb28db
Branches:  master

Link:       http://git.php.net/?p=web/pres2.git;a=commitdiff;h=3347f73c4a42bb6054525901dcfca3db705675c3

Log:
play/pause by clicking on the video

Changed paths:
  M  pres2reveal


Diff:
diff --git a/pres2reveal b/pres2reveal
index 56837a9..9aaae28 100755
--- a/pres2reveal
+++ b/pres2reveal
@@ -229,7 +229,7 @@ function render_movie($e) {
 
 	$ret = <<<EOB
 	<div id="container">
-      <video id='video' controls="controls" preload='none'
+      <video id='video' controls="controls" preload='none' onclick='this.paused ? this.play() : this.pause();'
         $width $poster>
         <source id='mp4' src="{$slide_path}/$filename" type='video/mp4'/>
         <p>Your user agent does not support the HTML5 Video element.</p>