-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New pages: HTMLMediaElement API (played and seeking) #37006
Conversation
Preview URLs (comment last updated: 2025-01-06 21:51:00) |
Thank you @estelle! I was looking to add |
Should these also be added as entries into the main HTMLMediaElement page?
I'm new to this repo, so maybe they're scooped up in a build job, but it looks like the properties are also enumerated in the parent element page by hand. |
I am not sure if this was your question, but the two properties are already on the landing page. See https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement#htmlmediaelement.played. |
timePlayed += playedTimeRanges.end(i) - playedTimeRanges.start(i); | ||
} | ||
console.log(`The media played for a total of ${timePlayed} seconds.`); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be great to see this as a live sample.
- {{domxref("HTMLMediaElement.progress_event", "progress")}} event | ||
- {{domxref("HTMLMediaElement.seekable")}} | ||
- {{domxref("HTMLMediaElement.buffered")}} | ||
- {{domxref("HTMLMediaElement")}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should link to the parent here.
|
||
{{APIRef("HTML DOM")}} | ||
|
||
The readonly **`seeking`** property of the {{domxref("HTMLMediaElement")}} interface is a boolean indicating whether the media, the {{htmlelement("audio")}} or {{htmlelement("audio")}}, is in the process of seeking to a new position. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly the same comments for this paragraph.
|
||
- {{domxref("HTMLMediaElement.seeking_event", "seeking")}} event | ||
- {{domxref("HTMLMediaElement.seeked_event", "seeked")}} event | ||
- {{domxref("HTMLMediaElement")}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
It still says |
fixed. I was going to ask "How did I not see that?" but I know exactly why ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thank you Estelle!
part of Missing baseline pages project