Project

General

Profile

Actions

Bug #304

closed

Track Play doesnt work in Crome on page load without focus

Added by Truls Osmundsen over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Target version:
Start date:
03/14/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Track Play doesnt work (in CROME) if its the first thing that happens and the canvas doesnt have focus yet. I have to make the user press on the canvas to get focus BEFORE I start playing to hear anything.
It will work in Firefox though...

Here is an example, put this in the "Sound Track"-example and DONT press anything in the browser with your mouse. The program will start, but no sound...

#manifest:"pc"
#fullScreen:true
Track Load "mods/modtuto.mod", 10
Track Play 10,0: Track Volume 16
do
wait vlb
Loop

Actions #1

Updated by Truls Osmundsen over 4 years ago

This applies to the "Sam Play"-command as well.

Actions #2

Updated by Baptiste Pillot over 4 years ago

  • Affected version changed from to 0.9.6.4
Actions #3

Updated by Francois Lionet over 4 years ago

  • Status changed from New to Rejected
  • Assignee set to Francois Lionet
  • Target version set to 0.9.8.1

Not a bug but a protection of the browser against nasty website. I cannot do anything about it.
In V0.9.8, IF you leave the splash screen AND use Tracker instructions, it will ask for the user to click.
If you remove the splash screen, then it is your responsibility to have the user click on the screen (in the title screen for example) to have sounds.

Actions

Also available in: Atom PDF