the audio can't be played
Hi!
One of My participants told me she can listen to the audio on the page where there is only 4 audio clips, but on the page where there is 20, the audios can't be played...Strangely, some of my participants said they do not have such problems, me neither..
The console showed: AbortError: The play() request was interrupted by a call to pause().
the original javascript is: var stimuli1 = [
'my_audio/Australia1.mp3',
'my_audio/glasgow1.mp3',
'my_audio/India1.mp3',
'my_audio/Ireland1.mp3',
'my_audio/Japan1.mp3',
'my_audio/Manchester1.mp3',
'my_audio/Mandarin1.mp3',
'my_audio/Northern Ireland1.mp3',
'my_audio/NZE1.mp3',
'my_audio/South Africa1.mp3',
'my_audio/Australia2.mp3',
'my_audio/glasgow2.mp3',
'my_audio/India2.mp3',
'my_audio/Ireland2.mp3',
'my_audio/Japan2.mp3',
'my_audio/Manchester2.mp3',
'my_audio/Mandarin2.mp3',
'my_audio/Northern Ireland2.mp3',
'my_audio/NZE2.mp3',
'my_audio/South Africa2.mp3'
];
var preload = {
type: jsPsychPreload,
auto_preload: true
};
var cluster_trial_1 = {
type: jsPsychAudioTokens,
ratingtype: 'cluster',
stimuli: stimuli1,
force_listen: false,
loop: true,
prompt: `
<div style="font-size:14px; line-height:1.0; margin-top:30px;">
<p>您觉得哪些口音听起来比较像?请将这些音频按照相似程度拖拽分组。拖拽时圆点之间出现连线,才会被视为一组。</p>
<p>音频无法播放? <strong>请耐心等待30秒。</strong></p>
</div>
`
};
Could you please tell me why this is happening and help me how to change / improve my code?
Thank you so much!
Best
Runyu
Comments
Hi Runyu,
what you describe sounds more like a jsPsych problem or a general issue with your code. Have you tried asking in a jsPsych forumP
Best,
Kristian