ngAudio icon indicating copy to clipboard operation
ngAudio copied to clipboard

Using ngAudio as a global player within a player wrapper directive

Open phil-hudson opened this issue 10 years ago • 1 comments

Hey there.

I'm having some trouble using ngAudio as a global player (singleton). I've created a player component that will interact with ngAudio but am struggling with scoping and duplicate scope. I'm finding that when loading/playing new tracks, instead of replacing the existing track a new track will be added.

Basically:

I want to be able to interact with ngAudio as a singleton from a directive scope.

Do you have any examples of how this can be achieved please?

Thanks :D

phil-hudson avatar Aug 19 '16 03:08 phil-hudson

Hi. I'm also interesting in ability to use ngAudio as a global player (singleton). Or I wanna have only one "Audio" instance or the way to destroy it. Do you have any documentation or examples?

Ilya-Hubich avatar Jan 27 '17 13:01 Ilya-Hubich