COAP:COAP-2100/week7: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
Line 49: Line 49:
** Keep the browser tab open (you will need to copy/paste the code)
** Keep the browser tab open (you will need to copy/paste the code)


* Create a new HTML5 file using the template below:
* In the directory you just created, create a new HTML5 file using the template below:
<source lang="XML">
<source lang="XML">
<!doctype html>
<!doctype html>
Line 75: Line 75:


* Fix the URLs in the code:
* Fix the URLs in the code:
** In particular substitute the absolute "http://yourdomain.com/" by "js.player" or css.player.
** Reaplce the abolute "http://yourdomain.com/..." URL by "js.player" and css.player. '''Look at the code and think !'''.
** Change the name of the video files if needed.
** Change the name of the video files if needed.
** Change the name of the poster files, i.e. substitute "http://leanbackplayer.com/videos/poster/elephants_dream_640x360.jpg" by "myposter.jpg".
** Change the name of the poster files, i.e. substitute "http://leanbackplayer.com/videos/poster/elephants_dream_640x360.jpg" by "myposter.jpg".


* Test: If the video does ''not'' show then you likely:
* Test: If the video does ''not'' show then you likely:
** must have put the library and the CSS in some other place (not the same directory). Fix the URLs, '''look''' at your directory !
** must have put the JS  and CSS libraries in some other place (not the same directory). Fix the URLs, '''look''' at your directory !
** must have deleted some important line of code
** must have deleted some important line of code
** must have have syntax errors: validate your code
** must have have syntax errors: validate your code

Revision as of 17:46, 23 February 2014

Week 7

Topics

Discussion of homework, term project, mid term

Monday

  • Recall of HTML5 video principles (week 6)
  • HTML5 Captions
    • Track languages: SRT, WebVTT, Timed Text, etc.
    • WebVTT (A video track language)
    • Using JavaScript libraries
LeanBackPlayer exercise
  • LeanBack Player
  • Download from here and unzip the library within a folder that you could name "project6".
  • Create the player code with the HTML5 Generator.
    • Tick most everything except autoplay and loop
    • You already can substitute the video file names (but you also can do that later). We suggest doing it now, e.g. use myvideo.mp4, myvideo.webm, etc.
    • Keep the browser tab open (you will need to copy/paste the code)
  • In the directory you just created, create a new HTML5 file using the template below:
<!doctype html>
<html>
  <head>
    <meta charset="UTF-8"/> 
    <title>HTML 5 video</title>

    <!-- Insert the header code about here and kill this line -->

  </head>
    <body>

      <h1>Title that you should set </h1>
      <p>Intro that you should change ....</p>

   <!-- Insert the body code about here and kill this line -->


      <hr/>
      <a href="http://validator.w3.org/">W3C validator</a> 
    </body>
</html>
  • Test: If the video does not show then you likely:
    • must have put the JS and CSS libraries in some other place (not the same directory). Fix the URLs, look at your directory !
    • must have deleted some important line of code
    • must have have syntax errors: validate your code
    • Tip: Open the error console in your browser: In Firefox: Tools->Web Developer->Error console
Using track with LeanbackPlayer

Track elements

	<track enabled="true" kind="subtitles" label="EN"
	       src="subtitles_en.srt" srclang="en" type="text/x-srt"/>
	<track enabled="true" kind="subtitles" label="EN VTT"
	       src="subtitles_en.vtt" srclang="en" type="text/vtt"/>
	<track enabled="true" kind="subtitles" label="FR" 
	       src="subtitles_fr.vtt" srclang="fr" type="text/vtt"/>

WebVTT template to copy/paste into a file called something like subtitles_en.vtt

WEBVTT

Introduction
00:00:01.000 --> 00:01:10.000
Wikipedia is a great adventure. It may have
its shortcomings, but it is the largest collective
knowledge construction endevour

Disclaimer
00:01:10.000 --> 00:02:10.000
This is just a track demo using VTT
Optional

Wednesday

Creating screencasts:

Video and audio editing (part II)

Homework 7

(none, to be confirmed)