A sample player
authorPhilippe Le Hégaret <plh@w3.org>
Fri, 21 Nov 2008 22:35:42 +0000
changeset 20 be90f549fcb0
parent 19 2f7732216962
child 21 f3315898f212
A sample player
testsuite/web-framework/START.html
testsuite/web-framework/sample_player.js
--- a/testsuite/web-framework/START.html	Fri Nov 21 22:35:22 2008 +0000
+++ b/testsuite/web-framework/START.html	Fri Nov 21 22:35:42 2008 +0000
@@ -9,6 +9,9 @@
     <script type="text/javascript" src='tests.js'></script>
     <script type="text/javascript" src='NCAM.js'></script>
     <script type="text/javascript" src='JWP.js'></script>
+<!--
+    <script type="text/javascript" src='sample_player.js'></script>
+-->
   </head>
   <body onload='init();'>
     <div id='header'>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsuite/web-framework/sample_player.js	Fri Nov 21 22:35:42 2008 +0000
@@ -0,0 +1,46 @@
+// Display a video with the specified DFXP captioning document
+// 1. Create one function with no parameter to start your player.
+// 2. Create a function to start your player with a test, as follows:
+//    a. the function takes five parameters:
+//       1. integer: The test unique number
+//       2. string: filename of the test
+//       3. boolean: if autostart should be on or off
+//       4. DOM Element: the DOM div element containing your player object
+//    b. the player goes in <div id="testarea">
+// 3. Create a function to stop your player, as follows:
+//    a. the function takes one parameter:
+//       1. integer: The test unique number
+// 4. Create one function with no parameter to stop your player.
+// 5. Invoke addPlayer("name of the player",
+//                     "yourStartPlayerFunctionName",
+//                     "yourStartTestFunctionName", 
+//                     "yourStopTestFunctionName",
+//                     "yourStopPlayerFunctionName") to add your player
+
+addPlayer("Sample Player 3.0.1", 
+	  "startSamplePlayer", 
+	  "startSampleTest", 
+	  "stopSampleTest", 
+	  "stopSamplePlayer");
+
+function startSamplePlayer() {
+    // nothing needs to be done
+    alert("Start the sample player.");
+}
+
+function startSampleTest(test_number, filename, autostart, div) {
+
+    alert("Start the sample player with the test " + test_number);
+}
+
+function stopSampleTest(test_number)
+{
+    // nothing needs to be done
+    alert("Stop the sample player with the test " + test_number);
+}
+
+function stopSamplePlayer()
+{
+    // nothing needs to be done
+    alert("Stop the sample player.");
+}
\ No newline at end of file