Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding big files (e.g., audio) in the builder #251

Open
jlelonki opened this issue Nov 26, 2024 · 1 comment
Open

adding big files (e.g., audio) in the builder #251

jlelonki opened this issue Nov 26, 2024 · 1 comment

Comments

@jlelonki
Copy link

Hi,

Thanks for releasing labjs! I am trying to build an experiment where I use a sequence element to play an audio file while a screen element is repeatedly displayed to collect responses (see the screenshot attached; I am browsing in Firefox115.13.0esr 64-bit for Windows 10).

The issue I am having is that the online builder stops me from uploading the audio file (11 MB). I can upload a snippet (1 MB), but this is no good for my experiment.

How can I include large files in the experiment?

I would appreciate your help!

screenshot

@jlelonki
Copy link
Author

jlelonki commented Nov 29, 2024

Let me reply to myself here, so that other users who might be struggling with the same issue can benefit.

I found two work-around solutions:
(1) create the experiment in the builder using a small placeholder file; export the experiment, upload to JATOS; in JATOS in the folder: \...\study_assets_root\ [NAME OF YOUR STUDY] \embedded substitute the placeholder file with the actual file; note that you must name the actual file using the name of the placeholder file as appears in the assets folder

(2) cut the actual file into chunks under 2.5 MB each and reconstruct it by running the chunks one after another in your script; this has the disadvantage that in case of slower internet connection there might be pauses between chunks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant