[Gambas-user] Supped up the WebAudio.class

Bruce Steers bsteers4 at gmail.com
Wed Jul 27 21:59:42 CEST 2022


On Wed, 27 Jul 2022 at 17:26, Bruce Steers <bsteers4 at gmail.com> wrote:

>
>
> On Wed, 27 Jul 2022 at 14:45, Bruce Steers <bsteers4 at gmail.com> wrote:
>
>>
>>
>> On Wed, 27 Jul 2022 at 13:13, Safiur Rahman <isafiur at gmail.com> wrote:
>>
>>> Wonderful
>>>
>>
>> Cheers.
>> In the last commit i made it stand-alone.
>> I had previously added some things to lib.js but have removed them since
>> adding the observer, so the WebAudio.class will work on it's own with
>> normal gambas.
>> (It's possibly too bloated now for Ben's taste so might not be a
>> candidate for inclusion to the mainframe)
>>
>> Just download the file @
>> https://gitlab.com/bsteers4/gambas/-/blob/WebAudio-upgrade/comp/src/gb.web.gui/.src/WebAudio.class
>> and import it into a project to use it.
>>
>
> Note:
> Using the default lib.js for the Play function will unpause at the start
> of the track not where it paused as it sets currentTime to 0
> I've addressed that in my commits.
> fix by adding your own play function to a custom js file and omit the
> currentTime=0; line
>

Ben we could do with a way to detect the slider being held down
In my case to stop the event that updates it according to song time
position.
It glitches as the slider tries to update it's position while dragging
unless it can be handled.
Needs like a WebSlider.Dragging property or something.  (or MouseDown,
MouseUp events) so it can be bypassed


Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220727/199ad3f5/attachment.htm>


More information about the User mailing list