Millisecond Forums

Only Loading Specific Files

https://forums.millisecond.com/Topic19838.aspx

By Connorrr - 10/11/2016

Hi,

  I'm running a web experiment that plays audio files which are dependent on an input from the user.  So for example the user will enter "2" and the experiment will play audio files 1 and 3 or if they enter "4" they will get files 2 and 5.  These files are quite long so even in mp3 format the entire program takes a fair while to download (~ 3-5 mins with a good connection).  Is there a way to only download the files that will be necessary after that input?  So using those previous examples if the user enters "2" only download files 1 and 3?
By Dave - 10/11/2016

Yes, this is actually possible under Inquisit 5 via the <video> element's /stream attribute:

https://www.millisecond.com/support/docs/v5/html/language/attributes/stream.htm