ampproject / ampproject/amphtml

Current time setter function - Video API

Open
#35,818 2 comments 0 reactions 0 assignees View on GitHub
Stale Type: Feature Request
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

I would like setting the current time in an amp project (with amp-video.js) this project uses a lot of video with "time links". So if a user click a time button ( 03:00 ), when jump to event time in video. It seems like a good feature in an amp project. So many website using "time tag", and this is a big drawback if a developer would like to use amp.js.

### Alternatives Considered

I think this problem will solved, if add a setter function the currentTime property.
https://amp.dev/documentation/components/amp-video-v1.0/?format=websites#currenttime-(number)

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with amp-video.js and the amp-video currentTime documentation linked in the issue. Trace how currentTime is exposed, then verify that a setter can seek to a time such as 03:00 for time-link controls; done means developers can set the video's current time.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.