PSA: Filenames for web experiments can be case-sensitive


Author
Message
AKrishna
AKrishna
Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)Distinguished Member (3.2K reputation)
Group: Forum Members
Posts: 93, Visits: 293
Hi all,

I've run into this issue before and I really should know better by now, but I just spent 20 minutes googling and couldn't find an answer, so I thought I'd write up a problem I had and its solution for posterity.

I set up an Inquisit Web experiment which included media files (specifically mp4s, although I didn't test whether other types of media such as pictures were also affected). It ran fine locally, but when I tested it from the Inquisit Web launch page, the script crashed when loading the media ("Relax_1.mp4"). The error message was: "Invalid media 'Relax_4.mp4'." (Code 0), followed by "Player Error 'Relax_1.mp4'. Resource could not be resolved. Failed to load source." (Code 0), and "Unable to load the media file '[redacted link to file]'. Failed to load media." (Code 63).

The solution was to change the Inquisit script from:
<video RelaxationVideo>
/ items = ("Relax_1.mp4")
/ playthrough = false
/ size = (80%, 80%)
/ stream = true
</video>

to:
<video RelaxationVideo>
/ items = ("relax_1.mp4")
/ playthrough = false
/ size = (80%, 80%)
/ stream = true
</video>


Note the case spelling in the /items attribute. This fixed the issue. Hope this helps if anyone has the same problem.

And hi, future me! Yes, you have had this problem before!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search