"," is the separater for the if(check, true, false) statement, so your current code would be incorrect syntax wise
so if you apply this to your current code, it would look like this:
if(sound[xtUfer].paused, << check
>> true set(layer[xtUfer_4].html, 'Pause ▶') ,
>> false playsound_at_hv(xtUfer,'get(hotspot[xtUfer].audio_url)',
>> incorrect syntax >> get(hotspot[xtUfer].ath_sound),0,100,false,1,30, ); set(layer[xtUfer_4].html, 'Pause▐▐') );
and will cause everything else after this statement to be ignored.
so adjust your code to something like this:
if(sound[xtUfer].paused,
set(layer[xtUfer_4].html, 'Pause ▶');
playsound_at_hv(xtUfer,'get(hotspot[xtUfer].audio_url)';
get(hotspot[xtUfer].ath_sound),0,100,false,1,30, );
,
set(layer[xtUfer_4].html, 'Pause▐▐');
);
Basically, replace your "," with ";"
see https://krpano.com/docu/actions/#if