Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Audio playback issues with Google Chrome

Hi,

I have an experiment where participants listen to a word and then respond by pressing a key. I have more than 1000 trials. Everything works fine in Firefox but in Google Chrome some words fail to play. I get the following error when running in Chrome: [Intervention] Blocked attempt to create a WebMediaPlayer as there are too many WebMediaPlayers already in existence

I'm really not experienced this so if anybody has any ideas on what I could try to get the experiment to work consistently in Chrome, I'd appreciate it!

Comments

  • Hi @sflu,

    It seems that Chrome has a limit on the number of media players that can be assigned in a given tab. You can find workarounds here, as this issue has been reported before.

    I don't know how your experiment is set up, but you could also try reusing/updating the media player element each time instead of creating a new one, or forcing resources to be properly released/destroyed after use... 

    Hope this helps,

    Claire

  • Hi @cvanbuck,

    Thank you for the info! I tried using an inline_javascript item to play the stimuli, as suggested in the forum post, but that didn't seem to fix the issue. Could you maybe advise on how to implement the other suggestions you mentioned, such as reusing the media player element or releasing resources? The trial structure is as follows: sketchpad with fixation dot, sketchpad with response options, sampler to play a file from the file pool, and a keyboard response item.

    As a last resort, I'll make Firefox the only possible browser option but it would be great to be able to run the experiment in Chrome and Edge as well.

    Thank you!

  • Hi @sflu,

    Could you share your experiment file so that I can have a look?

    Cheers,

    Claire

  • I stripped it down to just the practice phase consisting of 10 trials because it was too big to upload here since the main experimental phase consists of 1000 trials. I think you're right that the issue has to do with Chrome limiting the number of media players because the stripped down version runs fine in Chrome whereas before some files in the practice phase didn't play.

    Thanks so much!

    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.
    File
    SemDec_ES_test.osexp
    67.25 KB


  • Thanks!

    So I know you had 1000 trials in total, but how was it distributed? For example, how many trials/repeats were initially in your training and test loop tables? And how many different audio files were in your file pool? I'm trying to reproduce the error with settings as close to yours as possible.

  • Hi,

    So I had 10 trials in the practice phase and 1000 in the main experiment phase. In total, I have 1017 audio files in the file pool. 1010 files are the stimuli and 7 files are part of a check participants have to complete before the start of the practice phase to determine whether they are wearing headphones or not (they listen to a calibration noise to adjust the volume, and then have to pick which of the sounds they hear is the quietest). Based on the errors I got, the media player limit in Chrome may be set to 1000?

    Thank you so much for your help!!

  • Mh, yes, theoretically, but I can't say for sure because I can't reproduce your Chrome error, even with 1033 audio files in the file pool and the same number of lines in a loop, or with two loops (a 10-trial loop + a 1033-trial loop)... 

    A few more questions:

    • Is your Chrome version up to date (in case they have removed/increased the limit since then, which is a bit optimistic)?
    • If so, do you only get the error after a certain number of trials (e.g., >1000)?
    • Could you share your whole (heavy) experiment via a Google Drive link or something?

    Claire

  • @cvanbuck, interesting, did you get that media player error at all?

    Yes, my version of Chrome should be up to date. I'm guessing you're also using the latest version of OpenSesame?

    I've run the experiment several times, and the files that didn't play were always the same ones. The affected files (around 17 of the total) are alphabetically the last in the file pool but they are played in random order during the loop, so the error occurs throughout the experiment, not just after a certain number of trials have passed (if this makes sense). For example, the word 'viento' is part of the practice sequence but never plays when I run the experiment, even though it's only the 7th or so audio file that's being played in the entire experiment. Here's a link to the study: https://drive.google.com/file/d/17qE4ExubTX1kbsduFNfOVyrHXuXCQMRa/view?usp=sharing

    Thanks so much for looking into this!

    Simone

  • Hi again @platzf,

    I ran the whole experiment and went through a first screen freeze; not sure if this was due to your debugging or if it was always there, but these words had a "1" right before their names in the loop table of the exp sequence: vista, viruela, invitado, viga. 

    So I fixed that and ran it again and... I didn't get a media player error at all. "viento" played fine during the training part, and I heard "vodka" during the test part, along with many others... 

    Honestly I'm not sure what's the problem here... I am indeed using the latest version of Opensame, but are you really? When I opened your file, I got this message:

    Let me know,

    Claire

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games