Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to implement: HTMLMediaElement::seekToNextFrame()

166 views
Skip to first unread message

Tzu-Hao Kuo

unread,
May 26, 2016, 10:49:39 PM5/26/16
to dev-pl...@lists.mozilla.org, Blake Wu, Chris Pearce, JW Wang, Ehsan Akhgari
*Summary*: HTMLMediaElement::seekToNextFrame() is an experimental feature
which enables JS developers to access video frames one-by-one without going
through the real-time playback. Internally, this feature could could be
used to writ media tests.

*Bug*: https://bugzilla.mozilla.org/show_bug.cgi?id=1235301

*Link to standard*: No standard. This API was first discussed at Mozlando
and has been discussed online here(
https://github.com/w3c/mediacapture-worker/issues/33). The discussion has
been led to a stream-based design which will probably take a long time so
we would like to implement the proposed HTMLMediaElement::seekToNextFrame()
first for testing.

*Platform coverage*: all platforms.

*Estimated or target release*: 49

*Preference behind which this will be implemented*: media.seekToNextFrame

*DevTools bug*: no needed, I think.

*Tzuhao Kuo (Kuku)* | OS Media | *Mozilla Taipei* | M: +886-939-816-840

Xidorn Quan

unread,
May 27, 2016, 12:53:38 AM5/27/16
to Tzu-Hao Kuo, Blake Wu, Chris Pearce, JW Wang, dev-pl...@lists.mozilla.org, Ehsan Akhgari
On Fri, May 27, 2016 at 12:49 PM, Tzu-Hao Kuo <tk...@mozilla.com> wrote:

>
> *Preference behind which this will be implemented*: media.seekToNextFrame
>

I guess it'd be better to call it "media.seekToNextFrame.enabled".

- Xidorn

Tzu-Hao Kuo

unread,
May 30, 2016, 6:47:49 AM5/30/16
to Xidorn Quan, Blake Wu, Chris Pearce, JW Wang, dev-pl...@lists.mozilla.org, Ehsan Akhgari
Yes, Xidorn, thanks. I have modified it accordingly.

*Tzuhao Kuo (Kuku)* | OS Media | *Mozilla Taipei* | M: +886-939-816-840

Eric Shepherd

unread,
Jun 1, 2016, 1:56:07 PM6/1/16
to Tzu-Hao Kuo, Blake Wu, Chris Pearce, JW Wang, dev-pl...@lists.mozilla.org, Ehsan Akhgari
This will be great for writing JavaScript code that applies filters or
effects to video, too. Sweet.


> *Summary*: HTMLMediaElement::seekToNextFrame() is an experimental feature
> which enables JS developers to access video frames one-by-one without going
> through the real-time playback. Internally, this feature could could be
> used to writ media tests.

--

Eric Shepherd
Senior Technical Writer
Mozilla Developer Network <https://developer.mozilla.org/>
Blog: https://www.bitstampede.com/
Twitter: http://twitter.com/sheppy
Doodle: http://doodle.com/the.sheppy

Jet Villegas

unread,
Jun 1, 2016, 5:34:25 PM6/1/16
to Tzu-Hao Kuo, Blake Wu, Chris Pearce, JW Wang, group, mozilla.dev.platform, Ehsan Akhgari
On Thu, May 26, 2016 at 7:49 PM, Tzu-Hao Kuo <tk...@mozilla.com> wrote:


> *Link to standard*: No standard. This API was first discussed at Mozlando
> and has been discussed online here(
> https://github.com/w3c/mediacapture-worker/issues/33). The discussion has
> been led to a stream-based design which will probably take a long time so
> we would like to implement the proposed HTMLMediaElement::seekToNextFrame()
> first for testing.
>

What's the plan for resolving Streams/MediaStream integration raised on
the github issue? I read "probably take a long time" to mean we're working
on it, but is that actually the case? This is a feature we definitely want
interop on.

--Jet

Ehsan Akhgari

unread,
Jun 2, 2016, 3:36:57 PM6/2/16
to j...@mozilla.com, Tzu-Hao Kuo, Blake Wu, Chris Pearce, JW Wang, group, mozilla.dev.platform, Ehsan Akhgari
FWIW I r+ed the patch on the bug based on the assumption that we will
not be shipping the API in its current form...

Chris Pearce

unread,
Jun 2, 2016, 4:41:01 PM6/2/16
to
The plan is to use feedback garnered from people experimenting with the experimental API in pre-release builds to help guide the design of the larger streams-based API.

We're not going to ship the API enabled in the current form in Release Firefox.

There are guys in Taipei interested in working on a streams-based API I believe. So they'll likely be leading the effort. We'll discuss this at Mozlondon.

Eric Shepherd

unread,
Jun 2, 2016, 5:51:58 PM6/2/16
to Chris Pearce, dev-pl...@lists.mozilla.org
Do: do you want this method documented or not? I presume not, since
exposure will be limited.

------------------------------------------------------------------------
*From:* Chris Pearce
*Sent:* Thursday, Jun 2, 2016 4:40:59 PM EDT
*To:* dev-pl...@lists.mozilla.org
*Subject:* Intent to implement: HTMLMediaElement::seekToNextFrame()

> We're not going to ship the API enabled in the current form in Release Firefox.

Chris Pearce

unread,
Jun 2, 2016, 6:00:03 PM6/2/16
to
I think minimal documentation, saying that this feature is experimental and that the user must enable the pref before it'll work is useful.
0 new messages