<div>Dear All,</div><div><br></div>I am using a little known but very useful channel variable called "playback_timeout_sec"<div><br></div><div>In Lua if I do: session:setVariable("playback_timeout_sec", "10")</div>
<div><br></div><div>and subsequently in a macro I have:</div><div><br></div><div><action function="play-file" date="/some/filename.mp3" /></div><div><br></div><div>Then the filename.mp3 stops playing automatically after 10 seconds. This is very useful if you want to play short excerpts of a file that could be very long.</div>
<div><br></div><div>But if I do:</div><div><br></div><div><div><action application="set" date="playback_timeout_sec=10" /></div><div><div><action function="play-file" date="/some/filename.mp3" /></div>
</div><div><div><br></div></div><div>My file does NOT stop playing after 10 seconds. This is weird given that <action application="set" .. /> is doing exactly the same thing as session:setVariable() ... right?</div>
<div><br></div><div>My question</div><div>1. What could be the problem with application set?</div><div>2. Is there a way to automatically stop playback after a certain number of seconds for a file? (without doing tedious things like create a separate 10second version of an mp3 using ffmpeg etc.)</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Sidharth</div>-- <br>Sidharth Kshatriya<br><a href="http://www.sidk.info">www.sidk.info</a><br><br>
</div>