Dear all,
I use angular js for a single page web application, users can browse a list
of video conferences and sea each of them.
Of course I have one route for the list, and one route for each conference.
Client side : html5 <video/>
Server side : CDN with http bytes range request capabilities (Amazon
Cloudfront).
Problem : if the user watch a video (but not until the end), then go back
to the list,Chrome continues to load the video. I cannot see the video of
course but the Network tab of the Chrome console shows the download in
progress. If I remove
If the user does that for 3, 3 download in progress. It can be reproduced
easily : start watching a video, and then remove the <video/> DOM element
manually with the developer tools, the network tab will show the download
in progress
Consequences :
- network congestion on the user side : video playback becomes slow.
- bandwith use on the server side (amazon cloudfront, each mb transfered is
charged).
- bandwith use on the client side (mobile subscriptions are often capped to
a maximum Gb transfered by months).
Of course it does not happen with a full refresh of the page.
It's rather a SPA <=> Browser problem than a angularjs problem, but with a
directive attached to the video tag that does
scope.$on('$routeChangeStart', function (next, current) {
// change src of the video tag to null and call load on the
video tag
});
seems to work. Is it the right way to do ?
Many thanks,
- A
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.