Lucas_Okkk
Lucas_Okkk

Reputation: 53

Howler.js get HTMLMediaElement

is there a way to access the HTMLMediaElement from a Howler.js sound? I need the HTMLMediaElement for the WebAudioAPI.

Current Code:

this.audio = new Howl({
    src: this.url
})

Upvotes: 2

Views: 661

Answers (1)

Anish Pathak
Anish Pathak

Reputation: 19

For anyone like me still looking:

var node = audio._sounds[0]._node
//node is an HTMLAudioElement

Found it from here.

Upvotes: 1

Related Questions