-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
I2I: seekTo
for video
#19891
Comments
I think this is something we can work on together. I've wrote down a basic burndown list and I'll start going with a few tasks :) |
@mister-ben It looks like the Brightcove API supports seeking. Is this something you'd be interested in adding to |
@sanchezedgar I assigned you a couple of tasks if you'd like to begin work on |
I can handle this for @alanorozco Is there alreadya . Design doc / design review done for this? |
@torch2424 No design doc needed, this issue should serve the same purpose. There's not a lot to review but the API, and I think that's fairly uncontroversial. If you'd like to present it next week, feel free, but I'm out until Jan :( Let's discuss design here in the meantime. |
@alanorozco Sounds good! Since Let's try to coordinate implementing around the same time, that way videos on AMP stay consistent. I'm in no rush to implement this, and we can wait until you get back. Unless someone feels otherwise. |
@alanorozco we will add this |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Goal
Implement a high-trust
seekTo
action for video.Details
API
Mimic the
amp-animation
API:Where
time
is specified in seconds andpercent
between[0, 1]
. Both params are optional but one of them should be set.Implementation
VideoInterface
Basic boilerplate and implementation for
amp-video
filed in #19893.amp-video
See above.
VideoManager action
VideoManager#registerCommonActions_
should addseekTo
. For reference on how the callback can be implemented, seeamp-animation.js
.amp-video-iframe
This introduces the concept of method parameters to
amp-video-iframe
.AmpVideoIframe#method_()
should understand this concept by taking an optionalJsonObject
to be passed along postMessage in theparams
field.timeSeconds
must be passed as an int, and since this is aJsonObject
thevideo-iframe-integration.js
library should unmarshall them correctly.In the
video-iframe-integration.js
library, themethod
method (mea culpa for bad naming choices here) takes aparams
field that can be either aJsonObject
ornull
.Once this is bootstrapped,
videoJS
andjwplayer
integrations should be simple executions ofmethod
.amp-youtube
The YouTube JS SDK supports
seekTo
so we can build off of that.amp-ima-video
(@torch2424 to add details)
Feasability with other players
Different players can either support this new method or not. Feasibility of each needs to evaluated and implemented independently. Readers can feel free to chime in for prioritization, but we'll start with
amp-video
,amp-youtube
andamp-video-iframe
to support a large surface initially.Burn down
VideoInterface
method. (@alanorozco, 🏗✨ Add boilerplate for videoseekTo
, implement foramp-video
#19893)VideoManager
. (@sanchezedgar)seekTo
, implement foramp-video
#19893)postMessage
passthrumethod()
integrationvideoJS
support (@alanorozco)jwplayer
support (@alanorozco)test-video-players-helper.js
/cc @aghassemi @sanchezedgar
The text was updated successfully, but these errors were encountered: