Re: Questions on audio/video tests

Hi Kai,


About video test:

1.

>>  http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#video
>>  NamedConstructor for Audio, though I can't find Video. How is one
>>  supposed to construct video from JS?


Can we use setSrcByTagName("video", findMediaFile("video", 
"content/test")) if findMediaFile() != ""? Then 
document.getElementsByTagName("video") should return HTMLVideoElement 
still it is created in findMediaFile.

2.
String 158
         audio.addEventListener('ended', function () {
should be
         video.addEventListener('ended', function () {

Thanks,
     Dmitri.


On 12.01.2010 18:59, Dominique Hazael-Massieux wrote:
> Le mardi 12 janvier 2010 à 15:49 +0000, Kai Hendry a écrit :
>    
>> 2010/1/12 Dominique Hazael-Massieux<dom@w3.org>:
>>      
>>> I’m looking at the audio and video tests, and I'm having trouble finding
>>> references to some of the functions it uses:
>>> • where are defined the Audio() and Video() constructors? (in
>>> particular, Firefox 3.5 seems to choke on that constructor, although it
>>> looks like it is supposed to support it)
>>>        
>> Btw I stole this test from:
>> http://svn.webkit.org/repository/webkit/trunk/LayoutTests/media/
>>      
> Which one exactly? You need to copy whatever license/copyright notice
> comes with the original test, I would assume.
>
>    
>> http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#video
>> NamedConstructor for Audio, though I can't find Video. How is one
>> supposed to construct video from JS?
>>      
> What about
> video = new HTMLVideoElement();
> ?
>
>    
>>> • what is the function findMediaFile? where is it defined?
>>>        
>> http://dev.w3.org/2008/mobile-test/v2/media-file.js
>>      
> Oops, I had missed that :) My Android browser seems to find a parsing
> error at line 3 on that script, but I haven't figured out why yet.
>
> Thanks,
>
> Dom
>
>
>
>    

Received on Tuesday, 2 February 2010 04:35:52 UTC