# Videos don't open in the browser version

**URL:** https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245
**Category:** Online experiments
**Created:** [December 12, 2024, 12:24am UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245 "2024-12-12T00:24:41Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Elise\_Adams](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/elise_adams/32/42479_2.png) [@Elise\_Adams](https://discourse.psychopy.org/u/Elise_Adams)
#### Post date: [December 12, 2024, 12:24am UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/1 "2024-12-12T00:24:41Z")

</div>

Description of the problem: Videos are uploaded along with the other resources, but they don’t open. In chrome I don’t get an error but in firefox I see  
" when attempting to play MovieStim: teaching\_video  
AbortError: The fetching process for the media resource was aborted by the  
user agent at the user’s request.  
"

Based on other posts, I set the opacity of the video to 1 and tried all of the backend options, with no luck.

[Proj2\_legacy.psyexp](https://discourse.psychopy.org/uploads/short-url/eFxhAptfpLT0FiRVCRWBdh9neLS.psyexp) (240.5 KB)

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [December 12, 2024, 8:03am UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/2 "2024-12-12T08:03:28Z")

</div>

What does $\_corr == 0 mean?

You’ve uploaded your legacy psyexp which shows teaching\_video should play $video1. Please show a screenshot of your spreadsheet?

How big is the video?

---

<div class="post-metadata">

### Author: ![Elise\_Adams](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/elise_adams/32/42479_2.png) [@Elise\_Adams](https://discourse.psychopy.org/u/Elise_Adams)
#### Post date: [December 12, 2024, 3:51pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/3 "2024-12-12T15:51:52Z")

</div>

$\_corr == 0 is the condition I’m using for when a wrong item is clicked, it works for the text stimuli that’s supposed to display with the video (386 KB).

 ![conditions screenshot](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/c/1c32ff17b7b83cfbb07ef0f1cfaa76f77d25c2f5.png)

---

<div class="post-metadata">

### Author: ![Elise\_Adams](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/elise_adams/32/42479_2.png) [@Elise\_Adams](https://discourse.psychopy.org/u/Elise_Adams)
#### Post date: [February 4, 2025, 7:20pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/4 "2025-02-04T19:20:32Z")

</div>

Still having the same issue

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [February 4, 2025, 8:00pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/5 "2025-02-04T20:00:18Z")

</div>

It runs fine locally andin Chrome but fails in Firefox? That sounds like a compatibility issue with the video type. Are you using H264 encoding?

[https://psychopy.org/online/resources.html#onlinemediaformats](https://psychopy.org/online/resources.html#onlinemediaformats)

---

<div class="post-metadata">

### Author: ![Elise\_Adams](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/elise_adams/32/42479_2.png) [@Elise\_Adams](https://discourse.psychopy.org/u/Elise_Adams)
#### Post date: [February 4, 2025, 8:56pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/6 "2025-02-04T20:56:01Z")

</div>

Hello,  
The videos don’t open in any browser I’ve used but at least in firefox it gives an error message. Other browsers (Chrome and Edge) don’t give an error message, they run the experiment without the videos at all. I created a separate experiment and tested each video I want to use and each of them work online, so the issue may be in the spreadsheet?

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [February 4, 2025, 8:57pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/7 "2025-02-04T20:57:22Z")

</div>

How big are the videos?

Try starting them at 1 second rather than 0 seconds in the routine.

Best wishes,

Wakefield

---

<div class="post-metadata">

### Author: ![Elise\_Adams](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/elise_adams/32/42479_2.png) [@Elise\_Adams](https://discourse.psychopy.org/u/Elise_Adams)
#### Post date: [February 4, 2025, 9:12pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/8 "2025-02-04T21:12:28Z")

</div>

Thank you, I tried starting them at 1 second, 0, and the $\_corr==0 condition but I’m still having the same issue. The videos vary between 72-564KB.

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [February 4, 2025, 10:15pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/9 "2025-02-04T22:15:09Z")

</div>

Try making a dummy experiment that just plays one of the videos. Have you checked the encoding? You could also upload one here if you’re not sure.

---

<div class="post-metadata">

### Author: ![Elise\_Adams](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/elise_adams/32/42479_2.png) [@Elise\_Adams](https://discourse.psychopy.org/u/Elise_Adams)
#### Post date: [February 5, 2025, 7:00pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/10 "2025-02-05T19:00:44Z")

</div>

I tried making a dummy experiment and they all worked.

Here’s the largest video:

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [February 5, 2025, 10:24pm UTC](https://discourse.psychopy.org/t/videos-dont-open-in-the-browser-version/43245/11 "2025-02-05T22:24:44Z")

</div>

The videos are working online in your dummy experiment? Maybe you could try building it up until it either replaces your original experiment or you find out which step breaks it.

According to ChatGPT, there are a couple of possibilities for the error:

**Media Loading Aborted by the User**

- If a media resource (like an audio or video file) is being fetched and the user navigates away, the browser may abort the loading process, resulting in this error.  
**Network Issues or Browser Policies**
- Some browsers may abort fetch requests due to security policies, network disconnections, or other resource constraints.

I wouldn’t expect there to be an issue with this video – it is H264 encoded and not too big. I wonder if there are specific files that fail. You could try using a print statement to check the value for video1 at the point of failure.

> [@Wakefield's Daily Tips](https://discourse.psychopy.org/t/wakefields-daily-tips/43371/4):
>
> Use Print statements When debugging, print statements can be very helpful to track down errors or unexpected behaviour. I tend to use them in one of two ways: print('trial setup started') Sometimes I won’t know where the error is, especially if there is a problem during the initial setup of the components or Begin experiment code. The components of each routine are set up in turn from top to bottom. Therefore, if you have a flow with routines called start, trial and finish and put print('tri…

> [@Wakefield's Daily Tips](https://discourse.psychopy.org/t/wakefields-daily-tips/43371/5):
>
> Developer Tools If you encounter an error in an online study, open the Developer tools console using Ctl-Shift-I in Windows/Chrome, Cmd-Opt-J or Cmd-Opt-I in Mac/Chrome, F12 in IE/Edge, Ctrl-Shift-J in Windows/Safari or Ctrl-Opt-J in Mac/Safari. Select the Console tab at the top and errors item on the left to view errors. Ignore the 404 error related to favicon.ico Look for the error that appears on the main screen and click on the link next to Scheduler.\_currentTask. Take…
