I have the following needs:
1) I'd like to be able to intercept calls to img ng-src
via my http interceptor. Given that ng-src does not get routed to http interceptors, I am using this http-src directive https://stackoverflow.com/a/29606436/1361529
2) The problem however is that this directive only works once - it replaces the "src" attribute with the image, so the image only loads once and does not change.
What I mean is my template has the following code:
<span ng-repeat="monitor in MontageMonitors>
<img id="img-$index" http-src="{{LoginData.streamingurl}}/nph-zms?mode=single&monitor={{monitor.Monitor.Id}}&scale={{LoginData.montageQuality}}{{$root.authSession}}&rand={{$root.rand}}" ng-click="openModal(monitor.Monitor.Id, monitor.Monitor.Controllable, monitor.Monitor.ControlId)" />
</span>
This image is reloaded every 1 second via a timer in my code, but since the http-src directive essentially replaces the src attribute with an inline image, it doesn't update.
How do I solve this?
thanks