Skip to content Skip to sidebar Skip to footer

Angular Ogv.js Audio Player Controls

I'm using ogv.js in Angular 8. I want to play ogg audio in my browser (Safari). In the browser, just the audio is being played without any controls (play/pause etc.)? My component

Solution 1:

In order to have controls appear in the template of the component you would need to add the following line:

containerElement.appendChild(player);

The containerElement will be any that you create in your template

What appendChild does it to create the player in your template as explained in the ogv.js documentation

Post a Comment for "Angular Ogv.js Audio Player Controls"