Comments (1)
Hey @dmbjsn .
To see if a sound is playing, look at the audio.paused property.
ngAudio can't use $sce.trustAsResourceUrl
in the way described because this a security issue. If someone were to allow users to specify their own mp3 file names, this would allow the user to run arbitrary JS code in the client context. Your best option I think is to include the strings in your JS somewhere.
DS
from ngaudio.
Related Issues (20)
- ngAudio not working with Angular 1.6.x HOT 3
- Add Support for Angular 2 HOT 1
- What version am I on? HOT 1
- Only One Audio File Plays HOT 5
- When will release version 1.7.4? HOT 4
- Play sounds seamlessly on a loop HOT 2
- No ability to load multiple links in loop HOT 2
- audio.progress is returning a string instead of a float value HOT 6
- Not able to create multiple instances of ng audio HOT 1
- Is there any way to implement angular 4? HOT 3
- Setting progress of audio instance resets progress to 0 HOT 1
- Release multiple audio file fix
- Global mute not working on version 1.7.3
- OGG files cant replay(restart|| play again)
- Propose Logo HOT 4
- setVolume isn't working on iOS devices HOT 1
- Please rename your module HOT 2
- Set audio progress before the audio start playing
- Lots of vulnerabilities HOT 2
- Any chance of adding support for angular 1.7.x? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngaudio.