Skip to content

Commit

Permalink
Multimedia: Add cuepoint documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cynthia Richard committed Sep 9, 2014
1 parent 3f5b9b4 commit 1477514
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions site/pages/docs/ref/multimedia/multimedia-en.hbs
Expand Up @@ -101,6 +101,14 @@
</ol>
<pre><code>&lt;track src="cpts-lg-en.html" kind="captions" data-type="text/html" srclang="en" label="English" /&gt;</code></pre>
</li>
<li><strong>Optional: </strong>Add buttons to link to cue points within your video.
<ul>
<li>Add a <code>button</code> element within the <code>figure</code> container.</li>
<li>Specify the cue point in seconds (ex. 75s) or time notation (01:15)</li>
</ul>
<pre><code>&lt;button class="btn btn-info cuepoint" data-cuepoint="75s"&gt;Cue point - 75s&lt;/button&gt;</code></pre>
<pre><code>&lt;button class="btn btn-info cuepoint" data-cuepoint="01:15"&gt;Cue point - 01:15&lt;/button&gt;</code></pre>
</li>
</ol>

<section>
Expand All @@ -111,6 +119,7 @@
&lt;source type="video/mp4" src="http://video2.servicecanada.gc.ca/video/boew-wet/te-lj-eng.mp4" /&gt;
&lt;track src="cpts-lg-en.html" kind="captions" data-type="text/html" srclang="en" label="English" /&gt;
&lt;/video&gt;
&lt;button class="btn btn-info cuepoint" data-cuepoint="75s"&gt;Cue point - 75s&lt;/button&gt;
&lt;figcaption&gt;
&lt;p&gt;Looking for a Job (&lt;a href="http://www.servicecanada.gc.ca/eng/video/lj.shtml"&gt;Transcript&lt;/a&gt;)&lt;/p&gt;
&lt;/figcaption&gt;
Expand Down
9 changes: 9 additions & 0 deletions site/pages/docs/ref/multimedia/multimedia-fr.hbs
Expand Up @@ -103,6 +103,14 @@
</ol>
<pre><code>&lt;track src="cpts-lg-fr.html" kind="captions" data-type="text/html" srclang="fr" label="Français" /&gt;</code></pre>
</li>
<li><strong>Facultatif : </strong>Ajoutez des boutons pour accéder aux marqueurs temporels dans la vidéo.
<ul>
<li>Ajoutez un élément <code>button</code> dans le contenant <code>figure</code>.</li>
<li>Spécifiez le marqueur en secondes (ex. 75s) ou en temps (01:15)</li>
</ul>
<pre><code>&lt;button class="btn btn-info cuepoint" data-cuepoint="75s"&gt;Marqueur temporel - 75s&lt;/button&gt;</code></pre>
<pre><code>&lt;button class="btn btn-info cuepoint" data-cuepoint="01:15"&gt;Marqueur temporel - 01:15&lt;/button&gt;</code></pre>
</li>
</ol>

<section>
Expand All @@ -113,6 +121,7 @@
&lt;source type="video/mp4" src="http://video2.servicecanada.gc.ca/video/boew-wet/te-lj-fra.mp4" /&gt;
&lt;track src="cpts-lg-fr.html" kind="captions" data-type="text/html" srclang="fr" label="Français" /&gt;
&lt;/video&gt;
&lt;button class="btn btn-info cuepoint" data-cuepoint="75s"&gt;Marqueur temporel - 75s&lt;/button&gt;
&lt;figcaption&gt;
&lt;p&gt;Trouver un emploi (&lt;a href="http://www.servicecanada.gc.ca/fra/video/te.shtml"&gt;Transcription&lt;/a&gt;)&lt;/p&gt;
&lt;/figcaption&gt;
Expand Down

0 comments on commit 1477514

Please sign in to comment.