We need MediaControls::onDownload
Reported by
tgfjt.m...@gmail.com,
Apr 17 2017
|
|||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Steps to reproduce the problem:
1. Show download media controls in video element.
2. Click download button.
3. There is no way to handle the download.
What is the expected behavior?
like this below:
```
video.ondownload = function() {
alert("The video has downloaded");
};
```
What went wrong?
That's nothing
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 57.0.2987.133 Channel: stable
OS Version: OS X 10.12.4
Flash Version:
,
Apr 17 2017
What's the use case for such an event with native controls?
,
Apr 17 2017
I think that users want to set up the conversion tracking.
,
Apr 18 2017
We've never got that kind of feedback. Is it something you are personally interested to use or more a theoretical concern? Note that adding such an event to the spec would be hard because we would have to standardise it and this is really part of the media controls, not the media element. Also, I'm not sure what event should be fired. If an event when the download is successful has to be fired, one might ask for one when it failed and maybe some other events. It might become complex enough that websites might as well implement it themselves.
,
Apr 18 2017
Indeed. That's right. I must be just interested personally.:) I agree that we should standardise. Thinking about the use case, I would count how many clicked the download button(or downloaded) on Video element. Is this an issue which has better be on whatwg/html??
,
Apr 19 2017
Yes, I think that filing the issue in the whatwg/html githum repository would be better.
,
Apr 19 2017
I'm going to archive this until we have feedback from a spec discussion. Unless there is interest from the community, I don't see us working on this feature. |
|||
►
Sign in to add a comment |
|||
Comment 1 by ranjitkan@chromium.org
, Apr 17 2017