W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2009

[whatwg] Remove addCueRange/removeCueRanges

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Fri, 14 Aug 2009 19:09:40 +1000
Message-ID: <2c0e02830908140209i3e9dfb33yb8aa320831d170b5@mail.gmail.com>
2009/8/14 Dr. Markus Walther <walther at svox.com>:
> Hi,
>
>> The .start/.end properties were dropped in favor of media fragments,
>> which the Media Fragments Working Group is producing a spec for.
>
> Who decided this? Has this decision been made public on this list?
>
>> It will
>> be something like http://www.example.com/movie.mov#t=12.33,21.16
>
> var audioObject = new Audio();
> audioObject.src
> ='data:audio/x-wav;base64,UklGRiIAAABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0Yf7///8AAAAA....';
> // play entire audio
> audioObject.play();
> // play (0.54328,0.72636) media fragment
> ?????

Not in this way. In fact, the new way will be much much simpler and
does not require javascript. All you need to do is:

<video src="http://www.example.com/movie.ogv#t=12.33,21.16">

or

<audio src="http://www.example.com/sound.oga#t=0.54328,0.72636">

Or if you really wanted to do it in javascript, you'd only need to
reload the resource:
video.src = "http://www.example.com/movie.ogv#t=12.33,21.16";
or
audio.src = "http://www.example.com/sound.oga#t=0.54328,0.72636";

That would have the same effect as setting "start" and "end" time.

Regards,
Silvia.
Received on Friday, 14 August 2009 02:09:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:15 UTC