COAP:COAP-2100/week6: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
Line 7: Line 7:
* Strategies for dealing with Video formats (Editing and conversion)
* Strategies for dealing with Video formats (Editing and conversion)
* Video and audio with HTML5
* Video and audio with HTML5
* Using JavaScript (HTML5 Players)


==== Teaching materials ====
==== Important teaching materials ====


* [[HTML5 audio and video]] ('''mandatory reading''' or find an equivalent)
* [[HTML5 audio and video]] ('''mandatory reading''' or find an equivalent)
* [http://en.wikipedia.org/wiki/Digital_container_format Digital container format] (Wikipedia) and [http://en.wikipedia.org/wiki/Comparison_of_container_formats Comparison of container formats] (Wikipedia). Will show you that lots of codecs are supported by some of these containers.
* [http://en.wikipedia.org/wiki/Digital_container_format Digital container format] (Wikipedia) and [http://en.wikipedia.org/wiki/Comparison_of_container_formats Comparison of container formats] (Wikipedia). Will show you that lots of codecs are supported by some of these containers.
* [[Video streaming]], [[Multimedia container format]], [[Codec]], [[Video editing]] (some short background info with links)
* [[Video streaming]], [[Multimedia container format]], [[Codec]], [[Video editing]] (some short background info with links)
* [[Flash video component tutorial]] (only "Video encoding with Flash CS3", "Using the video with the component first method", "Making use of captions")
* [[WebVTT]]
* [[Flash video component tutorial]] ''if time left'', only "Video encoding with Flash CS3", "Using the video with the component first method", "Making use of captions")


==== Classroom activities ====
==== Classroom activities - Monday ====
 
; Monday


* Using Videos in HTML5 overview
* Using Videos in HTML5 overview
Line 67: Line 67:
; Wednesday (to be confirmed)
; Wednesday (to be confirmed)


* Creating Flash videos '''or''' using HTML5 players
* Using HTML5 Players
* Video encoding for Flash and Timed Text ([[Flash video component tutorial]], only "Video encoding with Flash CS3", "Using the video with the component first method", "Making use of captions")
 
==== Classroom activities - Wednesday ====
 
; Discussion of term project and final
* [[COAP:COAP-2100/term project|term project]]
 
; Principles
* Recall of HTML5 video principles
* Track languages: SRT, WebVTT, [[Timed Text]], etc.
* [[WebVTT]] (A video track language)
* Using JavaScript libraries
 
; LeanBackPlayer exercise
 
* [http://leanbackplayer.com/ LeanBack Player]
* Download from [http://leanbackplayer.com/player_download.html?type=player here] and unzip the library within a folder that you could name "project5".


Code template for timed text:
* Create the player code with the [[http://leanbackplayer.com/generator/ HTML5 Generator]].
<source lang="actionscript">
** Tick most everything except autoplay and loop
<?xml version="1.0" encoding="UTF-8"?>
** 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.
<tt xml:lang="en" xmlns="http://www.w3.org/2006/04/ttaf1"
** Keep the browser tab open (you will need to copy/paste the code)
    xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling">
  <head><styling></styling></head>
  <body>
  <div xml:lang="en">
      <p begin="1" dur="4">Let´s start</p>


    </div>
* Create a new HTML5 file using the template below:
  </body>
<source lang="XML">
</tt>
<!doctype html>
</source>
<html>
Code template for times text (advanced):
<source lang="actionscript">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tt SYSTEM "mini-tt.dtd">
<tt xml:lang="en" xmlns="http://www.w3.org/2006/04/ttaf1"
    xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling">
   <head>
   <head>
     <styling>
     <meta charset="UTF-8"/>  
      <style id="title" tts:backgroundColor="transparent" tts:color="red" tts:fontSize="24"/>
    <title>HTML 5 video</title>
     </styling>
 
     <!-- Insert the header code about here and kill this line -->
 
   </head>
   </head>
  <body>
    <body>
  <div xml:lang="en">
 
       <p begin="0" dur="9" style="title">Something</p>
       <h1>Title that you should set </h1>
       <p begin="30" dur="5">My
       <p>Intro that you should change ....</p>
        <span tts:backgroundColor="yellow" tts:color="black">
 
        something</span>
  <!-- Insert the body code about here and kill this line -->
       </p>
 
       <p begin="35" dur="5">
 
        <span tts:backgroundColor="transparent"></span>
       <hr/>
        Working hard ....
       <a href="http://validator.w3.org/">W3C validator</a>  
      </p>
     </body>
      <p begin="40" dur="4">The outside (not my bike)</p>
</html>
     </div>
  </body>
</tt>
</source>
</source>
* Fix the URLs in the code:
** In particular substitute the absolute "http://yourdomain.com/" by "".
** 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".
* Test. If the video does show then you likely:
** Put the library in some other place (not the same directory). Fix the URLs
** Deleted some important Line of code
** Have syntax errors. Validate your code
* Add tracking data
** See [[WebVTT]]
** Look at the code of http://tecfa.unige.ch/guides/html/html5-video/html5-video-track-leanbackplayer.html


==== Homework 5 ====
==== Homework 5 ====
Line 121: Line 138:
* Submit the files to the worldclass room. Make sure to include the media files unless you link to accessible URLs.
* Submit the files to the worldclass room. Make sure to include the media files unless you link to accessible URLs.


* ''Due'': Moday, week 7, before class
* ''Due'': Monday, week 7, before class
 
==== Homework 6 ====
 
Notice: Technology of HTML5 players will not be tested in the final exam. If you already submitted four good homeworks, you can skip this one.....
 
* Create an HTML5 file that includes at a video shown with an HTML5 Player. You can use LeanbackPlayer or any other.
* The page should be "meaningful" and usable with respect to a target population of your choice. (I.e. don't create a page for the instructor, identify an objective and implement ...)
* You may copy/paste text and use media files from some other sources under the condition that you cite these sources.
* You may keep the HTML very simple (ie. only use h1 and p tags)
* In order to get a high mark with respect to ''Artwork and appeal'', you should consider customizing the JS library as much as you can. Read the documentation that is provided on the website of the player.
* In order to get a high mark with respect to complexity, you must include tracking data.
* Submit the files to the worldclass room. Make sure to include the media files unless you link to accessible URLs. (We suggest using a zip file).
 
* ''Due'': Wednesday, week 7, before class


==== Term project ====
==== Term project ====
* See [[COAP:COAP-2100/term project|term project]]
* See [[COAP:COAP-2100/term project|term project]]


[[Category:COAP 2100]]
[[Category:COAP 2100]]

Revision as of 11:37, 24 April 2012

Week 5

Topics Covered

  • Video/Audio formats and codecs
  • Strategies for dealing with Video formats (Editing and conversion)
  • Video and audio with HTML5
  • Using JavaScript (HTML5 Players)

Important teaching materials

Classroom activities - Monday

<!doctype html>
<html>
  <head>
    <meta charset="UTF-8"/> 
    <title>HTML 5 video element</title>
  </head>
    <body>
Video (replace the URLS)
      <video id="movie1" controls preload="metadata">
	<source src="videos/state-of-wikipedia-480x272.mp4">
	<source src="videos/state-of-wikipedia-480x272.ogv">
	<source src="videos/state-of-wikipedia-480x272.webm">
        Your browser doesn't support HTML5. Maybe you should upgrade.
      </video>
Audio (replace/reduce the URLs)
      <audio id="movie1" autoplay loop>
	<source src="audio/guitar.mp3">
	<source src="audio/guitar.ogg">
	<source src="audio/guitar.m4a">
	<source src="audio/guitar.wav">
        Your browser doesn't support HTML5. Maybe you should upgrade.
      </audio>
      <hr/>
      <a href="http://validator.w3.org/check?uri=referer">W3C validator</a> 
    </body>
</html>
Wednesday (to be confirmed)
  • Using HTML5 Players

Classroom activities - Wednesday

Discussion of term project and final
Principles
  • Recall of HTML5 video principles
  • 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 "project5".
  • 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)
  • 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 show then you likely:
    • Put the library in some other place (not the same directory). Fix the URLs
    • Deleted some important Line of code
    • Have syntax errors. Validate your code

Homework 5

  • Create an HTML5 file that includes at least a video and an audio
  • The page should be "meaningful" and usable with respect to a target population of your choice. (I.e. don't create a page for the instructor, identify an objective and implement ...)
  • You may copy/paste text and use media files from some other sources under the condition that you cite these sources.
  • You may keep the HTML very simple (ie. only use h1 and p tags)
  • In order to get a high mark with respect to Artwork and appeal, you should consider using some CSS, e.g. add a float:right property to the video element. In case you don't know CSS at all, you may compensate with excellent contents.
  • Submit the files to the worldclass room. Make sure to include the media files unless you link to accessible URLs.
  • Due: Monday, week 7, before class

Homework 6

Notice: Technology of HTML5 players will not be tested in the final exam. If you already submitted four good homeworks, you can skip this one.....

  • Create an HTML5 file that includes at a video shown with an HTML5 Player. You can use LeanbackPlayer or any other.
  • The page should be "meaningful" and usable with respect to a target population of your choice. (I.e. don't create a page for the instructor, identify an objective and implement ...)
  • You may copy/paste text and use media files from some other sources under the condition that you cite these sources.
  • You may keep the HTML very simple (ie. only use h1 and p tags)
  • In order to get a high mark with respect to Artwork and appeal, you should consider customizing the JS library as much as you can. Read the documentation that is provided on the website of the player.
  • In order to get a high mark with respect to complexity, you must include tracking data.
  • Submit the files to the worldclass room. Make sure to include the media files unless you link to accessible URLs. (We suggest using a zip file).
  • Due: Wednesday, week 7, before class

Term project