Open Bug 847376 Opened 11 years ago Updated 2 years ago

Implement HTMLMediaElement.getStartDate()

Categories

(Core :: DOM: Core & HTML, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: baku, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed, html5)

Attachments

(1 file, 1 obsolete file)

      No description provided.
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: html
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()
Attached patch Impl (obsolete) — Splinter Review
Attachment #814690 - Flags: review?(cpearce)
Attached patch ImplSplinter Review
Forgot to qref.
Attachment #814690 - Attachment is obsolete: true
Attachment #814690 - Flags: review?(cpearce)
Attachment #814691 - Flags: review?(cpearce)
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.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: