Implement HTMLMediaElement.getStartDate()

NEW
Unassigned

Status

()

Core
DOM
5 years ago
4 years ago

People

(Reporter: baku, Unassigned)

Tracking

(Blocks: 1 bug, {dev-doc-needed, html5})

Trunk
dev-doc-needed, html5
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Comment hidden (empty)
It's "  readonly attribute Date startDate;", no?

We should just add Date to WebIDL; we need it for HTMLInputElement anyway.
Depends on: 847416
Depends on: 742206
No longer depends on: 847416
Blocks: 568516
Keywords: html5
This got changed to a method...see: http://html5.org/tools/web-apps-tracker?from=8112&to=8113
Summary: Implement HTMLMediaElement - readonly attribute any startDate → Implement HTMLMediaElement.getStartDate()
Created attachment 814690 [details] [diff] [review]
Impl
Attachment #814690 - Flags: review?(cpearce)
Created attachment 814691 [details] [diff] [review]
Impl

Forgot to qref.
Attachment #814690 - Attachment is obsolete: true
Attachment #814690 - Flags: review?(cpearce)
Attachment #814691 - Flags: review?(cpearce)
Keywords: dev-doc-needed
Comment on attachment 814691 [details] [diff] [review]
Impl

Review of attachment 814691 [details] [diff] [review]:
-----------------------------------------------------------------

I don't think fragment start time is what you want here. What you need here is the timestamp which is typically stored in the metadata. We don't expose that yet, and it would be a bunch of work to get to it for all the formats we support, so I suggest we leave it for now.

We'd need a mochitest for this too.

Additionally, do any other browsers implements this feature? If no other browser does, I'm inclined to direct your efforts elsewhere first. I tested Chrome and IE on Windows, and they don't support HTMLMediaElement.startDate().
Attachment #814691 - Flags: review?(cpearce) → review-
Thanks for the review. 

> I don't think fragment start time is what you want here. What you need here
> is the timestamp which is typically stored in the metadata. We don't expose
> that yet, and it would be a bunch of work to get to it for all the formats
> we support...

Perhaps it'll be best to ping you on IRC to know what to look for in exposing the timestamps from the metadata and how to go about it. This is just to get more familiar with the media formats. 
 
> Additionally, do any other browsers implements this feature? 
None upon checking.
You need to log in before you can comment on or make changes to this bug.