How to preload sound files
Trevor DeVore
lists at mangomultimedia.com
Mon Mar 6 18:59:57 EST 2006
On Mar 6, 2006, at 3:41 PM, Peter T. Evensen wrote:
> Thanks for all your suggestions, unfortunately the sequence of
> sound files is dynamically generated, so splicing them together
> ahead of time won't work.
SMIL is plain text so it can be generated in Rev, output as a file to
a temp directory and loaded into a player object. Here is a sample
that displays images on after the other, but like I said before, I'm
not sure if you will get a seamless loop or not for audio.
SMILtext <smil xmlns:qt="http://www.apple.com/quicktime/resources/
smilextensions" qt:time-slider="true">
<head>
<layout>
<root-layout id="rootlayout" width="1280" height="960" />
<region id="image" width="1280" height="960" />
</layout>
</head>
<body>
<seq>
<img src="file:///Macintosh HD/Users/trevordevore/Pictures/Parkinson
House/DSC00416.jpg" region="image" duration="3S" />
<img src="file:///Macintosh HD/Users/trevordevore/Pictures/Parkinson
House/DSC00421.jpg" region="image" duration="3S" />
<img src="file:///Macintosh HD/Users/trevordevore/Pictures/Parkinson
House/DSC00414.jpg" region="image" duration="3S" />
<img src="file:///Macintosh HD/Users/trevordevore/Pictures/Parkinson
House/DSC00420.jpg" region="image" duration="3S" />
<img src="file:///Macintosh HD/Users/trevordevore/Pictures/Parkinson
House/DSC00422.jpg" region="image" duration="3S" />
</seq>
</body>
</smil>
--
Trevor DeVore
Blue Mango Learning Systems - http://www.bluemangolearning.com
trevor at bluemangolearning.com
More information about the use-livecode
mailing list