-
Notifications
You must be signed in to change notification settings - Fork 93
Using Plangular without Soundcloud #43
Comments
I assume you figured this out? There is a basic audio player in there, if you want to use as a reference, but it might make more sense to build a simple one from scratch. |
Hey Brent, Thank you for getting back to me on this issue. I am slowly figuring it The issue I am running into is bypassing the SC API process and using a mp3 I was wondering if you help answer a couple questions of mine. I am trying I guess I also have to ask if doing that is the best way to do this? I made |
Yeah I can take a look tomorrow or Monday, but you should remove your number from the comments since this is a public repo :) |
Sorry, I'm having trouble getting the plnkr to work. Seems like you might be referencing a different scope variable in your controller and in your index.html though. Generally though, you might want to consider how to split up the handling of the tracks array and simplifying the player directive to just play one at a time, then use a directive or controller to handle the array and next/previous methods. Plangular does both so that it can be isolated, but I would split those two things out if I was building something custom. Or, maybe check out the source for https://github.com/jxnblk/SoundRad/ as there might be some useful examples there. |
Hello,
Great player and great code. I am looking to use your player, but with MP3s. Is that possible? I have an API (/tracks.json) that I am pulling the song data from for my site. I have tried to rework some of the code so that the plangular attribute (src) is the mp3 file url which on the html is being generated by an ng-repeat that is pulling from the API. So my quick question is what would need to change to bypass the soundcloud api get, and just use the mp3 file url as the src?
Thanks,
John
The text was updated successfully, but these errors were encountered: