jxnblk / plangular

Create custom SoundCloud players with HTML & CSS
http://jxnblk.github.io/plangular
480 stars 93 forks source link

Status for not streamable tracks #88

Closed Eldar88 closed 6 years ago

Eldar88 commented 7 years ago

I know this is no more supported, but I'll try anyway... Is it possible to add a status for all the tracks that aren't streamable (GET request returns nothing)?

As you said I'm using this to make different content for the loading state.

<div ng-if="!track"><!-- Loading state --></div>
<div ng-if="track"><!-- Player --></div>

At this moment if the track isn't streamable, the track will always be in a "loading mode", but I would like to show a different content if it isn't streamable, instead of the "on loading" content. The only way to handle this more gracefully would be to modify Plangular to return an error rather than undefined when the track is inaccessible, in order to perform a separate check... Is it possible to do this?

Thanks