Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #36190 > unrolled thread

Initiate window.

Started byJonas Thörnvall <jonas.thornvall@gmail.com>
First post2019-03-27 06:30 -0700
Last post2019-03-27 06:38 -0700
Articles 4 — 1 participant

Back to article view | Back to comp.lang.javascript


Contents

  Initiate window. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-27 06:30 -0700
    Re: Initiate window. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-27 06:32 -0700
    Re: Initiate window. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-27 06:34 -0700
      Re: Initiate window. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-27 06:38 -0700

#36190 — Initiate window.

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-03-27 06:30 -0700
SubjectInitiate window.
Message-ID<d97e2283-aab1-4c63-8682-e0a4fce9ac25@googlegroups.com>
I have a problem, the script functionality do not work until i focus the windows "frame" with the mouse.

I have tried use the focus method but it does not work.
So is there a way simulate someone poking it.

parent.extSFsynth.focus();

[toc] | [next] | [standalone]


#36191

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-03-27 06:32 -0700
Message-ID<ac0a3254-e6a8-4167-ab89-a48c26d7c5b0@googlegroups.com>
In reply to#36190
Den onsdag 27 mars 2019 kl. 14:31:05 UTC+1 skrev Jonas Thörnvall:
> I have a problem, the script functionality do not work until i focus the windows "frame" with the mouse.
> 
> I have tried use the focus method but it does not work.
> So is there a way simulate someone poking it.
> 
> parent.extSFsynth.focus();

WTF
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

[toc] | [prev] | [next] | [standalone]


#36192

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-03-27 06:34 -0700
Message-ID<15b8c3ff-18b1-4969-abc3-8f3dbbc5211b@googlegroups.com>
In reply to#36190
Den onsdag 27 mars 2019 kl. 14:31:05 UTC+1 skrev Jonas Thörnvall:
> I have a problem, the script functionality do not work until i focus the windows "frame" with the mouse.
> 
> I have tried use the focus method but it does not work.
> So is there a way simulate someone poking it.
> 
> parent.extSFsynth.focus();

Well it is chrome by the way in opera it work just fine, without any focus or poking.

[toc] | [prev] | [next] | [standalone]


#36193

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2019-03-27 06:38 -0700
Message-ID<34e13469-e669-404a-afbb-820aabebb54c@googlegroups.com>
In reply to#36192
Den onsdag 27 mars 2019 kl. 14:34:38 UTC+1 skrev Jonas Thörnvall:
> Den onsdag 27 mars 2019 kl. 14:31:05 UTC+1 skrev Jonas Thörnvall:
> > I have a problem, the script functionality do not work until i focus the windows "frame" with the mouse.
> > 
> > I have tried use the focus method but it does not work.
> > So is there a way simulate someone poking it.
> > 
> > parent.extSFsynth.focus();
> 
> Well it is chrome by the way in opera it work just fine, without any focus or poking.

It is kind of annoying...
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web