x3dom / x3dom

X3DOM. A framework for integrating and manipulating X3D scenes as HTML5/DOM elements.
http://x3dom.org
Other
816 stars 271 forks source link

AudioClip startTime not implemented #1111

Open MarkCallow opened 3 years ago

MarkCallow commented 3 years ago

I have been told, see #1055, that "startTime is not implemented". This was in a discussion about AudioClip. I don't know if only AudioClip suffers from this.

This causes problems for content that routes touchTime from a TouchSensor to startTime with the intention of starting the audio playing.

andreasplesch commented 3 years ago

Thanks for opening a new issue to track. Contributions always welcome. TimeSensor is fully implemented. A potential workaround is to use the AudioClip enabled field to control play back, via routes or via dom scripting.

<BooleanFilter DEF='BFilter'/>
<ROUTE fromField='isActive' fromNode='WavTextClickedSensor' toField='set_boolean' toNode='BFilter'/>
<ROUTE fromField='inputNegate' fromNode='BFilter' toField='enabled' toNode='Testing123stereoWavAudioClip'/>
MarkCallow commented 3 years ago

Is it only AudioClip that lacks startTime implementation?

andreasplesch commented 3 years ago

MovieTexture may also lack startTime implementation although the field is listed.