<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Example_Video_HTML5</title><link>https://sourceforge.net/p/pgn4web/wiki/Example_Video_HTML5/</link><description>Recent changes to Example_Video_HTML5</description><atom:link href="https://sourceforge.net/p/pgn4web/wiki/Example_Video_HTML5/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 19 Jul 2016 14:06:07 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pgn4web/wiki/Example_Video_HTML5/feed" rel="self" type="application/rss+xml"/><item><title>Example_Video_HTML5 modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/Example_Video_HTML5/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -4,7 +4,7 @@

 You can add a similar page to your website or to a [chess blog](http://blog.casaschi.net/2011/03/pgn4web-integration-with-html5-video.html). 

-Example: &amp;lt;http: go.casaschi.net="" pgn4web-demo-video-ogg=""&amp;gt;
+[Click here for an example](http://pgn4web.casaschi.net/video.html?headerDisplay=false&amp;amp;pgnData=carlsensvidler.pgn&amp;amp;videoUrl=http://pb.casaschi.net/carlsensvidlervideo&amp;amp;videoWidth=480&amp;amp;videoHeight=270&amp;amp;videoLoop=true).

 ### instructions

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Tue, 19 Jul 2016 14:06:07 -0000</pubDate><guid>https://sourceforge.net29a2046284ab9d1dc50097666dc2e44f3ed96daa</guid></item><item><title>Example_Video_HTML5 modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/Example_Video_HTML5/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -8,7 +8,7 @@

 ### instructions

-The video integration is achieved using the `video.html` file with the appropriate parameters to select the youtube video. Browsing to `video.html?help=true` shows all the configuration options for `video.html`. 
+The video integration is achieved using the `video.html` file. Browsing to `video.html?help=true` shows all the configuration options for `video.html`. 

 `video.html` requires video timing information to be added to the PGN data. Here is an example of a PGN data for use with `video.html`: 

@@ -40,9 +40,7 @@

 Clock info ([`WhiteClock "3:02"]` header tag and `[%clk 3.03]` move comments) is optional. 

-pgn4web also integrates with [YouTube video](Example_Video_YouTube). 
-
-Please note, some older browser might not support this functionality. 
+Please note, some older browser might not support this functionality and the appropriate codec might be required for the browser to display the selected video depending on the video format.

 ### how to generate the video timing info

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Thu, 21 May 2015 07:39:44 -0000</pubDate><guid>https://sourceforge.net40ae91c9045a6f387e53204645cc4cc27ce2d590</guid></item><item><title>Example_Video_HTML5 modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/Example_Video_HTML5/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Sat, 14 Mar 2015 01:21:53 -0000</pubDate><guid>https://sourceforge.net393a13f7767589956c64bfe6f95c3a32ff1fb6fc</guid></item><item><title>Example_Video_HTML5 modified by Anonymous</title><link>https://sourceforge.net/p/pgn4web/wiki/Example_Video_HTML5/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="example-html5-video-integration"&gt;Example: HTML5 video integration&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;The pgn4web chessboard follows the game played in the &lt;a class="" href="http://en.wikipedia.org/wiki/HTML5_video" rel="nofollow"&gt;HTML5 video&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can add a similar page to your website or to a &lt;a class="" href="http://blog.casaschi.net/2011/03/pgn4web-integration-with-html5-video.html" rel="nofollow"&gt;chess blog&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Example: &lt;a href="http://go.casaschi.net/pgn4web-demo-video-ogg" rel="nofollow"&gt;http://go.casaschi.net/pgn4web-demo-video-ogg&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="instructions"&gt;instructions&lt;/h3&gt;
&lt;p&gt;The video integration is achieved using the &lt;code&gt;video.html&lt;/code&gt; file with the appropriate parameters to select the youtube video. Browsing to &lt;code&gt;video.html?help=true&lt;/code&gt; shows all the configuration options for &lt;code&gt;video.html&lt;/code&gt;. &lt;/p&gt;
&lt;p&gt;&lt;code&gt;video.html&lt;/code&gt; requires video timing information to be added to the PGN data. Here is an example of a PGN data for use with &lt;code&gt;video.html&lt;/code&gt;: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;[Event "World Blitz Championship"]&lt;/span&gt;
&lt;span class="k"&gt;[Site "Moscow RUS"]&lt;/span&gt;
&lt;span class="k"&gt;[Date "2010.11.18"]&lt;/span&gt;
&lt;span class="k"&gt;[Round "30"]&lt;/span&gt;
&lt;span class="k"&gt;[White "Magnus Carlsen"]&lt;/span&gt;
&lt;span class="k"&gt;[Black "Peter Svidler"]&lt;/span&gt;
&lt;span class="k"&gt;[Result "1-0"]&lt;/span&gt;
&lt;span class="k"&gt;[SetUp "1"]&lt;/span&gt;
&lt;span class="k"&gt;[FEN "8/6k1/1R6/p2pBnP1/8/8/r7/6K1 b - - 6 62"]&lt;/span&gt;
&lt;span class="k"&gt;[VideoTime "0.6"]&lt;/span&gt;

&lt;span class="err"&gt;62...&lt;/span&gt; &lt;span class="err"&gt;Kh7&lt;/span&gt; &lt;span class="err"&gt;{[%vt&lt;/span&gt; &lt;span class="err"&gt;3.5]}&lt;/span&gt;
&lt;span class="err"&gt;63.&lt;/span&gt; &lt;span class="err"&gt;g6&lt;/span&gt; &lt;span class="err"&gt;{[%vt&lt;/span&gt; &lt;span class="err"&gt;4.3]}&lt;/span&gt;
&lt;span class="err"&gt;63...&lt;/span&gt; &lt;span class="err"&gt;Kh6&lt;/span&gt; &lt;span class="err"&gt;{[%vt&lt;/span&gt; &lt;span class="err"&gt;5.7]}&lt;/span&gt;
&lt;span class="err"&gt;64.&lt;/span&gt; &lt;span class="err"&gt;g7&lt;/span&gt; &lt;span class="err"&gt;{[%vt&lt;/span&gt; &lt;span class="err"&gt;6.4]}&lt;/span&gt;
&lt;span class="err"&gt;64...&lt;/span&gt; &lt;span class="err"&gt;Kh7&lt;/span&gt; &lt;span class="err"&gt;{[%vt&lt;/span&gt; &lt;span class="err"&gt;7.2]}&lt;/span&gt;
&lt;span class="err"&gt;65.&lt;/span&gt; &lt;span class="err"&gt;Rb8&lt;/span&gt; &lt;span class="err"&gt;{[%vt&lt;/span&gt; &lt;span class="err"&gt;7.8]}&lt;/span&gt;
&lt;span class="err"&gt;65...&lt;/span&gt; &lt;span class="err"&gt;Nxg7&lt;/span&gt; &lt;span class="err"&gt;{[%vt&lt;/span&gt; &lt;span class="err"&gt;10.1]}&lt;/span&gt;
&lt;span class="err"&gt;...&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The &lt;code&gt;[VideoTime "0.0"]&lt;/code&gt; tag specifies when during the video playback this game should be loaded. This is useful in case the video shows more than one game. Every game must have this tag (otherwise defaulting to zero). &lt;/p&gt;
&lt;p&gt;The &lt;code&gt;[%vt 18.5]&lt;/code&gt; comment specifies when during the video playback this move should be shown. Every move must have this comment info (otherwise defaulting to zero). &lt;/p&gt;
&lt;p&gt;All video timing info (header tags and move comments) should be sequential through the PGN data, this means the first game of the video should be the first in the file and so on. If the video shows first game A, then game B, then game A again, the file should contain three games, with A as game number one and three. &lt;/p&gt;
&lt;p&gt;Clock info ([&lt;code&gt;WhiteClock "3:02"]&lt;/code&gt; header tag and &lt;code&gt;[%clk 3.03]&lt;/code&gt; move comments) is optional. &lt;/p&gt;
&lt;p&gt;pgn4web also integrates with &lt;a class="" href="../Example_Video_YouTube"&gt;YouTube video&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Please note, some older browser might not support this functionality. &lt;/p&gt;
&lt;h3 id="how-to-generate-the-video-timing-info"&gt;how to generate the video timing info&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;video.html&lt;/code&gt; provides a facility to interactively add video timing information to the PGN. &lt;/p&gt;
&lt;p&gt;Use the &lt;code&gt;videoUrl=...&lt;/code&gt; and the &lt;code&gt;pgnData=...&lt;/code&gt; URL options to specify your video and the associated PGN file. Then add the &lt;code&gt;setupVideotimes=true&lt;/code&gt; option. In this mode, while the video is playing, clicking the &lt;code&gt;capture&lt;/code&gt; button will add video timing info to the next game or move. After all games and moves have been updated with video timing info, you can copy the PGN data from the textbox for replacing your original PGN file. &lt;/p&gt;
&lt;h3 id="step-by-step"&gt;step by step&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;have your chess video in a &lt;a class="" href="http://en.wikipedia.org/wiki/HTML5_video#Supported_video_formats" rel="nofollow"&gt;format supported by HTML5 video&lt;/a&gt;, for instance video.ogv &lt;/li&gt;
&lt;li&gt;have the corresponding PGN data in &lt;code&gt;file.pgn&lt;/code&gt;, optionally with clock information: &lt;code&gt;[WhiteClock "xxx"]&lt;/code&gt; and &lt;code&gt;[%clk yyy]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;check the correctness of &lt;code&gt;file.pgn&lt;/code&gt; for instance with pgn4web's &lt;code&gt;board-generator.html&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;open &lt;code&gt;video.html&lt;/code&gt; in setup mode with &lt;code&gt;video.html?videoUrl=video.ogv&amp;amp;pgnData=file.pgn&amp;amp;setupVideotimes=true&lt;/code&gt; and progressively capture video timing info for each game and move &lt;/li&gt;
&lt;li&gt;update the PGN data &lt;code&gt;file.pgn&lt;/code&gt; with the addition of the video timing info &lt;code&gt;[VideoTime "xxx"]&lt;/code&gt; and &lt;code&gt;[%vt yyy]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;publish your chess video as &lt;code&gt;video.html?videoUrl=video.ogv&amp;amp;pgnData=file.pgn&lt;/code&gt;, optionally adding the &lt;code&gt;videoHeight=xxx&lt;/code&gt;, &lt;code&gt;videoWidth=yyy&lt;/code&gt;, &lt;code&gt;videoAutoplay=false&lt;/code&gt;, &lt;code&gt;videoLoop=true&lt;/code&gt; and &lt;code&gt;horizontalLayout=false&lt;/code&gt; URL parameters &lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 14 Mar 2015 01:10:19 -0000</pubDate><guid>https://sourceforge.net520700fa2fb7a08cde7370a1409e717dae087ce4</guid></item></channel></rss>