Page 1 of 1

Sound from middle

Posted: Wed Feb 02, 2022 11:59 pm
by areo
Hi,
I am new here. Is there a way to start playing an audio file from the middle somewhere? Something like "start from time 1:23 and end at 4:56 point."
Thank

Re: Sound from middle

Posted: Thu Feb 03, 2022 10:38 am
by SWEdeAndy
If you are using the player object (desktop) then look up playSelection, startTime and endTime in the LC dictionary.
Set the playSelection to true and then set startTime and endTime, to make the player only play the intervals in between.

The number of intervals per second is specified by the player's timeScale property. The total number of intervals is given in the player's duration property.

If your question relates to a mobile player, then look up mobileControlSet and the player specific "currentTime", which is the current position of the playhead, measured in milliseconds. For iOS mobileControlSet also has startTime and endTime settings.

Re: Sound from middle

Posted: Thu Feb 03, 2022 5:31 pm
by areo
Thank you Andy... Such concise and coherent response. Cheers