- From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
- Date: Fri, 14 Aug 2009 19:09:40 +1000
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