elpollodiablo
elpollodiablo

Reputation: 133

How to find currently active downloads in javascript?

Is there a way to find currently active http connections in a page? For example, a video that is currently being played (either html5 video or flash), large objects or even websocket connections?

Upvotes: 4

Views: 604

Answers (2)

Lasantha Bandara
Lasantha Bandara

Reputation: 809

In this StackOverflow question, you will see that google chrome does not support to access its download page.

But I found this firefox API that supports to access its download manager window. There you will see methods like, getAllDownloads() and getDownloadState(). You can call these methods using Javascript and get the job done.

Is it clear enough?

Upvotes: 2

Evert
Evert

Reputation: 99523

I don't think this is possible, unless you manually keep track of all these connections.

(for some reason I can't add comments, so editing this answer).

With manually I meant, before you make any connection you update a javascript object somewhere. After the connection is closed, trigger another event.

Upvotes: 0

Related Questions