Author: rolf
Date: 2007-12-27 07:54:15 -0500 (Thu, 27 Dec 2007)
New Revision: 91932

Added:
   trunk/moon/test/video/ChangeLog
   trunk/moon/test/video/Silverlight.js
   trunk/moon/test/video/all.html
   trunk/moon/test/video/all.js
   trunk/moon/test/video/all.xaml
   trunk/moon/test/video/data.js
   trunk/moon/test/video/embedded-script-commands.wmv
   trunk/moon/test/video/timecode-mini-caption-all.js
   trunk/moon/test/video/timecode-mini-caption-all.wmv
   trunk/moon/test/video/timecode-short-caption-1.js
   trunk/moon/test/video/timecode-short-caption-1.wmv
Log:
2007-12-27  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>

        * Created a web page to test for markers, added some videos.


Added: trunk/moon/test/video/ChangeLog
===================================================================
--- trunk/moon/test/video/ChangeLog     2007-12-27 12:47:04 UTC (rev 91931)
+++ trunk/moon/test/video/ChangeLog     2007-12-27 12:54:15 UTC (rev 91932)
@@ -0,0 +1,3 @@
+2007-12-27  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
+
+       * Created a web page to test for markers, added some videos.

Added: trunk/moon/test/video/Silverlight.js
===================================================================
--- trunk/moon/test/video/Silverlight.js        2007-12-27 12:47:04 UTC (rev 
91931)
+++ trunk/moon/test/video/Silverlight.js        2007-12-27 12:54:15 UTC (rev 
91932)
@@ -0,0 +1,15 @@
+///////////////////////////////////////////////////////////////////////////////
+//
+//  Silverlight.js                     version 1.0
+//
+//  This file is provided by Microsoft as a helper file for websites that
+//  incorporate Silverlight Objects. This file is provided under the 
Silverlight
+//  SDK 1.0 license available at http://go.microsoft.com/fwlink/?linkid=94240.
+//  You may not use or distribute this file or the code in this file except as
+//  expressly permitted under that license.
+//
+//  Copyright (c) 2007 Microsoft Corporation. All rights reserved.
+//
+///////////////////////////////////////////////////////////////////////////////
+
+if(!window.Silverlight)window.Silverlight={};Silverlight._silverlightCount=0;Silverlight.ua=null;Silverlight.available=false;Silverlight.fwlinkRoot="http://go.microsoft.com/fwlink/?LinkID=";Silverlight.StatusText="Get
 Microsoft 
Silverlight";Silverlight.EmptyText="";Silverlight.detectUserAgent=function(){var
 
a=window.navigator.userAgent;Silverlight.ua={OS:"Unsupported",Browser:"Unsupported"};if(a.indexOf("Windows
 NT")>=0)Silverlight.ua.OS="Windows";else if(a.indexOf("PPC Mac OS 
X")>=0)Silverlight.ua.OS="MacPPC";else if(a.indexOf("Intel Mac OS 
X")>=0)Silverlight.ua.OS="MacIntel";if(Silverlight.ua.OS!="Unsupported")if(a.indexOf("MSIE")>=0){if(navigator.userAgent.indexOf("Win64")==-1)if(parseInt(a.split("MSIE")[1])>=6)Silverlight.ua.Browser="MSIE"}else
 if(a.indexOf("Firefox")>=0){var 
b=a.split("Firefox/")[1].split("."),c=parseInt(b[0]);if(c>=2)Silverlight.ua.Browser="Firefox";else{var
 d=parseInt(b[1]);if(c==1&&d>=5)Silverlight.ua.Browser="Firefox"}}else 
if(a.indexOf("Safari")>=0
 
)Silverlight.ua.Browser="Safari"};Silverlight.detectUserAgent();Silverlight.isInstalled=function(d){var
 c=false,a=null;try{var b=null;if(Silverlight.ua.Browser=="MSIE")b=new 
ActiveXObject("AgControl.AgControl");else if(navigator.plugins["Silverlight 
Plug-In"]){a=document.createElement("div");document.body.appendChild(a);a.innerHTML='<embed
 type="application/x-silverlight" 
/>';b=a.childNodes[0]}if(b.IsVersionSupported(d))c=true;b=null;Silverlight.available=true}catch(e){c=false}if(a)document.body.removeChild(a);return
 c};Silverlight.createObject=function(l,g,m,j,k,i,h){var 
b={},a=j,c=k;a.source=l;b.parentElement=g;b.id=Silverlight.HtmlAttributeEncode(m);b.width=Silverlight.HtmlAttributeEncode(a.width);b.height=Silverlight.HtmlAttributeEncode(a.height);b.ignoreBrowserVer=Boolean(a.ignoreBrowserVer);b.inplaceInstallPrompt=Boolean(a.inplaceInstallPrompt);var
 
e=a.version.split(".");b.shortVer=e[0]+"."+e[1];b.version=a.version;a.initParams=i;a.windowless=a.isWindowless;a.maxFramer
 ate=a.framerate;for(var d in 
c)if(c[d]&&d!="onLoad"&&d!="onError"){a[d]=c[d];c[d]=null}delete a.width;delete 
a.height;delete a.id;delete a.onLoad;delete a.onError;delete 
a.ignoreBrowserVer;delete a.inplaceInstallPrompt;delete a.version;delete 
a.isWindowless;delete 
a.framerate;if(Silverlight.isInstalled(b.version)){if(Silverlight._silverlightCount==0)if(window.addEventListener)window.addEventListener("onunload",Silverlight.__cleanup,false);else
 window.attachEvent("onunload",Silverlight.__cleanup);var 
f=Silverlight._silverlightCount++;a.onLoad="__slLoad"+f;a.onError="__slError"+f;window[a.onLoad]=function(a){if(c.onLoad)c.onLoad(document.getElementById(b.id),h,a)};window[a.onError]=function(a,b){if(c.onError)c.onError(a,b);else
 
Silverlight.default_error_handler(a,b)};slPluginHTML=Silverlight.buildHTML(b,a)}else
 
slPluginHTML=Silverlight.buildPromptHTML(b);if(b.parentElement)b.parentElement.innerHTML=slPluginHTML;else
 return slPluginHTML};Silverlight.supportedUserAgent=function(
 ){var 
a=Silverlight.ua,b=a.OS=="Unsupported"||a.Browser=="Unsupported"||a.OS=="Windows"&&a.Browser=="Safari"||a.OS.indexOf("Mac")>=0&&a.Browser=="IE";return
 !b};Silverlight.buildHTML=function(c,d){var 
a=[],e,i,g,f,h;if(Silverlight.ua.Browser=="Safari"){a.push("<embed ");e="";i=" 
";g='="';f='"';h=' type="application/x-silverlight"/>'+"<iframe 
style='visibility:hidden;height:0;width:0'/>"}else{a.push('<object 
type="application/x-silverlight"');e=">";i=' <param name="';g='" value="';f='" 
/>';h="</object>"}a.push(' id="'+c.id+'" width="'+c.width+'" 
height="'+c.height+'" '+e);for(var b in 
d)if(d[b])a.push(i+Silverlight.HtmlAttributeEncode(b)+g+Silverlight.HtmlAttributeEncode(d[b])+f);a.push(h);return
 a.join("")};Silverlight.default_error_handler=function(e,b){var 
d,c=b.ErrorType;d=b.ErrorCode;var a="\nSilverlight error message     
\n";a+="ErrorCode: "+d+"\n";a+="ErrorType: "+c+"       \n";a+="Message: 
"+b.ErrorMessage+"     \n";if(c=="ParserError"){a+="XamlFile: "+b.xamlFile+"   
   \n";a+="Line: "+b.lineNumber+"     \n";a+="Position: "+b.charPosition+"     
\n"}else if(c=="RuntimeError"){if(b.lineNumber!=0){a+="Line: "+b.lineNumber+"   
  \n";a+="Position: "+b.charPosition+"     \n"}a+="MethodName: "+b.methodName+" 
    \n"}alert(a)};Silverlight.createObjectEx=function(b){var 
a=b,c=Silverlight.createObject(a.source,a.parentElement,a.id,a.properties,a.events,a.initParams,a.context);if(a.parentElement==null)return
 c};Silverlight.buildPromptHTML=function(i){var 
a=null,f=Silverlight.fwlinkRoot,c=Silverlight.ua.OS,b="92822",d;if(i.inplaceInstallPrompt){var
 h;if(Silverlight.available){d="94376";h="94382"}else{d="92802";h="94381"}var 
g="93481",e="93483";if(c=="Windows"){b="92799";g="92803";e="92805"}else 
if(c=="MacIntel"){b="92808";g="92804";e="92806"}else 
if(c=="MacPPC"){b="92807";g="92815";e="92816"}a='<table border="0" 
cellpadding="0" cellspacing="0" width="205px"><tr><td><img title="Get Microsoft 
Silverlight" onclick="javascript:Silverlight.followFWLink({0
 });" style="border:0; cursor:pointer" src="{1}"/></td></tr><tr><td 
style="background:#C7C7BD; text-align: center; color: black; font-family: 
Verdana; font-size: 9px; padding-bottom: 0.05cm; ;padding-top: 0.05cm" >By 
clicking <b>Get Microsoft Silverlight</b> you accept the <a title="Silverlight 
License Agreement" href="{2}" target="_top" style="text-decoration: underline; 
color: #36A6C6"><b>Silverlight license agreement</b></a>.</td></tr><tr><td 
style="border-left-style: solid; border-right-style: solid; border-width: 2px; 
border-color:#c7c7bd; background: #817d77; color: #FFFFFF; text-align: center; 
font-family: Verdana; font-size: 9px">Silverlight updates automatically, <a 
title="Silverlight Privacy Statement" href="{3}" target="_top" 
style="text-decoration: underline; color: #36A6C6"><b>learn 
more</b></a>.</td></tr><tr><td><img 
src="{4}"/></td></tr></table>';a=a.replace("{2}",f+g);a=a.replace("{3}",f+e);a=a.replace("{4}",f+h)}else{if(Silverlight.available)d="94377";else
 d=
 "92801";if(c=="Windows")b="92800";else if(c=="MacIntel")b="92812";else 
if(c=="MacPPC")b="92811";a='<div style="width: 205px; height: 67px; 
background-color: #FFFFFF"><img 
onclick="javascript:Silverlight.followFWLink({0});" style="border:0; 
cursor:pointer" src="{1}" alt="Get Microsoft 
Silverlight"/></div>'}a=a.replace("{0}",b);a=a.replace("{1}",f+d);return 
a};Silverlight.__cleanup=function(){for(var 
a=Silverlight._silverlightCount-1;a>=0;a--){window["__slLoad"+a]=null;window["__slError"+a]=null}if(window.removeEventListener)window.removeEventListener("unload",Silverlight.__cleanup,false);else
 
window.detachEvent("onunload",Silverlight.__cleanup)};Silverlight.followFWLink=function(a){top.location=Silverlight.fwlinkRoot+String(a)};Silverlight.HtmlAttributeEncode=function(c){var
 a,b="";if(c==null)return null;for(var 
d=0;d<c.length;d++){a=c.charCodeAt(d);if(a>96&&a<123||a>64&&a<91||a>43&&a<58&&a!=47||a==95)b=b+String.fromCharCode(a);else
 b=b+"&#"+a+";"}return b}
\ No newline at end of file

Added: trunk/moon/test/video/all.html
===================================================================
--- trunk/moon/test/video/all.html      2007-12-27 12:47:04 UTC (rev 91931)
+++ trunk/moon/test/video/all.html      2007-12-27 12:54:15 UTC (rev 91932)
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+<head>
+  <title>Video test file</title>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+  <script src="Silverlight.js" type="text/javascript"></script>
+  <script src="all.js" type="text/javascript"></script>
+  <script src="data.js" type="text/javascript"></script>
+</head>
+<body>
+<h1>Video test file</h1>
+<p>
+  Check that the metadata in the file raises the expected events.
+</p>
+
+<div id="Moonlight">
+<div id="MoonlightHost">
+       <script type="text/javascript">
+Silverlight.createObjectEx ({
+       source: "all.xaml",
+       parentElement: document.getElementById("MoonlightHost"),
+       id: "MoonlightControl",
+       properties: {
+               width: "1280",
+               height: "720",
+               version: "1.0",
+               background: "#ffffff",
+               isWindowless: "false"
+       },
+       events: {
+               onError: onBrokenPluginError,
+               onLoad: onPluginLoad
+       }
+});
+       </script>
+</div>
+</div>
+<div id="testlog"></div>
+
+</body>
+</html>

Added: trunk/moon/test/video/all.js
===================================================================
--- trunk/moon/test/video/all.js        2007-12-27 12:47:04 UTC (rev 91931)
+++ trunk/moon/test/video/all.js        2007-12-27 12:54:15 UTC (rev 91932)
@@ -0,0 +1,167 @@
+
+var tests = [];
+var results = [];
+
+var xaml = 
+"<Canvas  xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"; 
xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"; Width=\"120\" 
Height=\"80\">" +
+"      <MediaElement MarkerReached=\"onMarkerReached\" " +
+"              MediaEnded=\"onMediaEnded\" " +
+"              MediaOpened=\"onMediaOpened\" " +
+"              MediaFailed=\"onMediaFailed\" " + 
+"              x:Name=\"TestVideo\" Source=\"%TEST%.wmv\" Opacity=\"0.0\" 
IsHitTestVisible=\"False\"/> " +
+"      <Rectangle Width=\"1280\" Height=\"720\"  >" +
+"              <Rectangle.Fill>" +
+"                      <VideoBrush SourceName=\"TestVideo\" 
Stretch=\"None\"/>" +
+"              </Rectangle.Fill>" +
+"      </Rectangle>" +
+"</Canvas>";
+// Width=\"120\" Height=\"80\"
+var current_test;
+var currently_expected;
+var current_result = null;
+var marker_counter = 0;
+var log_counter = 0;
+var accumulative_result = true;
+var current_finished = false;
+
+function log_result (msg) {
+       var result = "";
+       
+       if (currently_expected != null && currently_expected.length > 0) {
+               if (currently_expected [log_counter] == msg) {
+                       result = " OK";
+               } else {
+                       result = " FAILED (expected: '" + currently_expected 
[log_counter] + "')";
+                       current_result = false;
+               }
+       }
+
+       msg = msg + result;
+
+       if (current_result == false) {
+               msg = "<div style='color:#FF0000;'>" + msg + "</div>";
+       } else {
+               msg = "<div style='color:#00BB00;'>" + msg + "</div>";
+       }
+
+       log_msg (msg)
+       log_counter++;
+}
+
+function log_msg (msg) {
+       document.getElementById("testlog").innerHTML += msg;// + "<br>";
+}
+
+function onBrokenPluginError (sender, args) {
+       log_result ("BrokenPlugin");
+       current_result = false;
+}
+
+function onPluginLoad (sender, args) {
+       log_result ("PluginLoad");
+       runTests ();
+}
+ style='foreground-color: red'
+function onMarkerReached (sender, markerEventArgs) {
+       marker_counter++;
+       log_result (marker_counter.toString () + " MarkerReached: ms = " + 
Math.round(markerEventArgs.marker.time.seconds*1000).toString () + ", type = " 
+ markerEventArgs.marker.type + ", text = " + markerEventArgs.marker.text);
+}
+
+function onMediaOpened (sender, args) {
+       log_result ("MediaOpened");
+}
+
+function onMediaEnded (sender, args) {
+       log_result ("MediaEnded");
+       currently_expected = null;
+       if (current_result == null) {
+               current_result = true;
+       }
+       current_finished = true;
+}
+
+function onMediaFailed (sender, args) {
+       log_result ("MediaFailed");
+       if (current_result == null) {
+               current_result = true;
+       }
+       current_finished = true;
+}
+
+function runTest (test_name) {
+       var media;
+       var SL = document.getElementById ("MoonlightControl");
+       var content = SL.content;
+       var container = content.findName ("Container");
+
+       current_finished = false;
+       marker_counter = 0;
+       log_counter = 0;
+       current_result = null;
+       current_test = test_name;
+       currently_expected = results [test_name];
+       
+       log_msg ("<br>Running " + test_name);
+
+       var test_xaml = xaml;
+
+       test_xaml = test_xaml.replace ("%TEST%", test_name);
+
+       media = content.createFromXaml (test_xaml);
+       while (container.Children.Count > 0)
+               container.Children.RemoveAt (0);
+       container.Children.Add (media);
+       
+       
+}
+
+function checkTests () {
+
+       if (!current_finished) {
+               setTimeout ("checkTests ()", 1000);
+               return;
+       }
+
+       accumulative_result &= current_result;
+
+       var next = -1;
+       for (i = 0; i < tests.length - 1; i++) {
+               //log_result ("Checking " + tests [i] + " against " + 
current_test);
+               if (tests [i] == current_test) {
+                       next = i+1;
+                       break;
+               }
+       }
+
+       if (next > -1) {
+               runTest (tests [next]);
+               setTimeout ("checkTests ()", 1000);
+       } else {
+               log_msg ("");
+               msg = "Running tests: DONE, result = ";
+               msg += ((accumulative_result != 0));// ? "OK" : "FAIL")); 
+               if (accumulative_result) {
+                       msg = "<div style='color:#00BB00;'>" + msg + "</div>";
+               } else { 
+                       msg = "<div style='color:#FF0000;'>" + msg + "</div>";
+               }
+               log_msg (msg);
+               document.getElementById("Moonlight").removeChild 
(document.getElementById ("MoonlightHost"));
+       }
+}
+
+function runTests () {
+       log_msg ("Running " + tests.length + " tests...");
+
+       if (tests.length > 0) {
+               runTest (tests [0]);
+               setTimeout ("checkTests ()", 1000);
+       } else {
+               log_msg ("No tests to run.");
+       }
+
+}
+
+
+
+

Added: trunk/moon/test/video/all.xaml
===================================================================
--- trunk/moon/test/video/all.xaml      2007-12-27 12:47:04 UTC (rev 91931)
+++ trunk/moon/test/video/all.xaml      2007-12-27 12:54:15 UTC (rev 91932)
@@ -0,0 +1,7 @@
+<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"; 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"; Width="120" Height="80" 
x:Name="Container">
+       <Rectangle Width="120" Height="80" x:Name="Cont">
+               <Rectangle.Fill>
+               <SolidColorBrush Color="Gray"/>
+               </Rectangle.Fill>
+       </Rectangle>
+</Canvas>

Added: trunk/moon/test/video/data.js
===================================================================
--- trunk/moon/test/video/data.js       2007-12-27 12:47:04 UTC (rev 91931)
+++ trunk/moon/test/video/data.js       2007-12-27 12:54:15 UTC (rev 91932)
@@ -0,0 +1,90 @@
+
+tests.push ("embedded-script-commands");
+results ["embedded-script-commands"] = [
+"MediaOpened", 
+"1 MarkerReached: ms = 933, type = caption, text = sub 1", 
+"2 MarkerReached: ms = 1467, type = caption, text = sub 2", 
+"3 MarkerReached: ms = 2133, type = text, text = some text here", 
+"4 MarkerReached: ms = 2933, type = caption, text = sub 3", 
+"5 MarkerReached: ms = 3533, type = caption, text = <center>sub 4</center>", 
+"6 MarkerReached: ms = 4333, type = caption, text = <b>sub 5</b>", 
+"MediaEnded"
+]
+
+
+tests.push ("timecode-mini-caption-all");
+results ["timecode-mini-caption-all"] = [
+"MediaOpened",
+"1 MarkerReached: ms = 0, type = caption, text = 00:00",
+"2 MarkerReached: ms = 50, type = caption, text = 00:01",
+"3 MarkerReached: ms = 79, type = caption, text = 00:02",
+"4 MarkerReached: ms = 117, type = caption, text = 00:03",
+"5 MarkerReached: ms = 149, type = caption, text = 00:04",
+"6 MarkerReached: ms = 187, type = caption, text = 00:05",
+"7 MarkerReached: ms = 228, type = caption, text = 00:06",
+"8 MarkerReached: ms = 254, type = caption, text = 00:07",
+"9 MarkerReached: ms = 276, type = caption, text = 00:08",
+"10 MarkerReached: ms = 324, type = caption, text = 00:09",
+"11 MarkerReached: ms = 337, type = caption, text = 00:10",
+"12 MarkerReached: ms = 384, type = caption, text = 00:11",
+"13 MarkerReached: ms = 403, type = caption, text = 00:12",
+"14 MarkerReached: ms = 445, type = caption, text = 00:13",
+"15 MarkerReached: ms = 489, type = caption, text = 00:14",
+"16 MarkerReached: ms = 521, type = caption, text = 00:15",
+"17 MarkerReached: ms = 546, type = caption, text = 00:16",
+"18 MarkerReached: ms = 588, type = caption, text = 00:17",
+"19 MarkerReached: ms = 620, type = caption, text = 00:18",
+"20 MarkerReached: ms = 658, type = caption, text = 00:19",
+"21 MarkerReached: ms = 686, type = caption, text = 00:20",
+"22 MarkerReached: ms = 721, type = caption, text = 00:21",
+"23 MarkerReached: ms = 759, type = caption, text = 00:22",
+"24 MarkerReached: ms = 798, type = caption, text = 00:23",
+"25 MarkerReached: ms = 826, type = caption, text = 00:24",
+"26 MarkerReached: ms = 855, type = caption, text = 00:25",
+"27 MarkerReached: ms = 883, type = caption, text = 00:26",
+"28 MarkerReached: ms = 918, type = caption, text = 00:27",
+"29 MarkerReached: ms = 960, type = caption, text = 00:28",
+"30 MarkerReached: ms = 995, type = caption, text = 00:29",
+"31 MarkerReached: ms = 1020, type = caption, text = 01:00",
+"32 MarkerReached: ms = 1052, type = caption, text = 01:01",
+"MediaEnded"
+];
+
+tests.push ("timecode-short-caption-1");
+results ["timecode-short-caption-1"] = [
+"MediaOpened",
+"1 MarkerReached: ms = 1004, type = caption, text = one sec",
+"MediaEnded"
+];
+
+tests.push ("timecode-short-mpeg4");
+results ["timecode-short-mpeg4"] = ["MediaFailed"];
+
+tests.push ("timecode-short-vc1-adv");
+results ["timecode-short-vc1-adv"] = ["MediaOpened", "MediaEnded"];
+
+tests.push ("timecode-short-vc1-main");
+results ["timecode-short-vc1-main"] = ["MediaOpened", "MediaEnded"];
+
+tests.push ("timecode-short-vc1-simple");
+results ["timecode-short-vc1-simple"] = ["MediaOpened", "MediaEnded"];
+
+tests.push ("timecode-short");
+results ["timecode-short"] = ["MediaFailed"];
+
+tests.push ("timecode-short-wmv7");
+results ["timecode-short-wmv7"] = ["MediaOpened", "MediaEnded"];
+
+tests.push ("timecode-short-wmv8");
+results ["timecode-short-wmv8"] = ["MediaOpened", "MediaEnded"];
+
+tests.push ("timecode-short-wmv9src");
+results ["timecode-short-wmv9src"] = ["MediaFailed"];
+
+tests.push ("timecode-short-wmv9");
+results ["timecode-short-wmv9"] = ["MediaOpened", "MediaEnded"];
+
+tests.push ("timecode");
+results ["timecode"] = ["MediaFailed"];
+
+

Added: trunk/moon/test/video/embedded-script-commands.wmv
===================================================================
(Binary files differ)


Property changes on: trunk/moon/test/video/embedded-script-commands.wmv
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/moon/test/video/timecode-mini-caption-all.js
===================================================================
--- trunk/moon/test/video/timecode-mini-caption-all.js  2007-12-27 12:47:04 UTC 
(rev 91931)
+++ trunk/moon/test/video/timecode-mini-caption-all.js  2007-12-27 12:54:15 UTC 
(rev 91932)
@@ -0,0 +1,39 @@
+
+tests.push ("timecode-mini-caption-all");
+
+results ["timecode-mini-caption-all"] = [
+"MediaOpened",
+"1 MarkerReached: ms = 0, type = caption, text = 00:00",
+"2 MarkerReached: ms = 50, type = caption, text = 00:01",
+"3 MarkerReached: ms = 79, type = caption, text = 00:02",
+"4 MarkerReached: ms = 117, type = caption, text = 00:03",
+"5 MarkerReached: ms = 149, type = caption, text = 00:04",
+"6 MarkerReached: ms = 187, type = caption, text = 00:05",
+"7 MarkerReached: ms = 228, type = caption, text = 00:06",
+"8 MarkerReached: ms = 254, type = caption, text = 00:07",
+"9 MarkerReached: ms = 276, type = caption, text = 00:08",
+"10 MarkerReached: ms = 324, type = caption, text = 00:09",
+"11 MarkerReached: ms = 337, type = caption, text = 00:10",
+"12 MarkerReached: ms = 384, type = caption, text = 00:11",
+"13 MarkerReached: ms = 403, type = caption, text = 00:12",
+"14 MarkerReached: ms = 445, type = caption, text = 00:13",
+"15 MarkerReached: ms = 489, type = caption, text = 00:14",
+"16 MarkerReached: ms = 521, type = caption, text = 00:15",
+"17 MarkerReached: ms = 546, type = caption, text = 00:16",
+"18 MarkerReached: ms = 588, type = caption, text = 00:17",
+"19 MarkerReached: ms = 620, type = caption, text = 00:18",
+"20 MarkerReached: ms = 658, type = caption, text = 00:19",
+"21 MarkerReached: ms = 686, type = caption, text = 00:20",
+"22 MarkerReached: ms = 721, type = caption, text = 00:21",
+"23 MarkerReached: ms = 759, type = caption, text = 00:22",
+"24 MarkerReached: ms = 798, type = caption, text = 00:23",
+"25 MarkerReached: ms = 826, type = caption, text = 00:24",
+"26 MarkerReached: ms = 855, type = caption, text = 00:25",
+"27 MarkerReached: ms = 883, type = caption, text = 00:26",
+"28 MarkerReached: ms = 918, type = caption, text = 00:27",
+"29 MarkerReached: ms = 960, type = caption, text = 00:28",
+"30 MarkerReached: ms = 995, type = caption, text = 00:29",
+"31 MarkerReached: ms = 1020, type = caption, text = 01:00",
+"32 MarkerReached: ms = 1052, type = caption, text = 01:01",
+"MediaEnded"
+];

Added: trunk/moon/test/video/timecode-mini-caption-all.wmv
===================================================================
(Binary files differ)


Property changes on: trunk/moon/test/video/timecode-mini-caption-all.wmv
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/moon/test/video/timecode-short-caption-1.js
===================================================================
--- trunk/moon/test/video/timecode-short-caption-1.js   2007-12-27 12:47:04 UTC 
(rev 91931)
+++ trunk/moon/test/video/timecode-short-caption-1.js   2007-12-27 12:54:15 UTC 
(rev 91932)
@@ -0,0 +1,8 @@
+
+tests.push ("timecode-short-caption-1");
+
+results ["timecode-short-caption-1"] = [
+"MediaOpened",
+"1 MarkerReached: ms = 1004, type = caption, text = one sec",
+"MediaEnded"
+];

Added: trunk/moon/test/video/timecode-short-caption-1.wmv
===================================================================
(Binary files differ)


Property changes on: trunk/moon/test/video/timecode-short-caption-1.wmv
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to