W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] Feature Request: Media Elements as Targets for Links

From: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Date: Sun, 25 Nov 2012 18:47:18 +0100
To: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Message-ID: <20121125184718.228f4dfa@desudesudesu>
Cc: whatwg <whatwg@lists.whatwg.org>
Silvia Pfeiffer <silviapfeiffer1@gmail.com> schrieb am Mon, 26 Nov 2012
00:01:52 +1100:

> Can you provide an example markup and an example URL that you think
> will solve your use case?

Example markup. Assume I have an audio element in a blog:

<audio id="episode1">
  <source src="episode1.oga" type="audio/ogg; codecs=vorbis">
  <source src="episode1.mp3" type="audio/mpeg">

Someone could comment it like:

<a href="#t=01:23" target="audio">When Alice mentioned Bob</a> …

When someone clicks the link, the browsing context would not change,
but the media element would jump to that point (and possibly play).

> I'm asking because we don't use the name attribute any more in HTML5,
> because we have the id attribute on all elements. Thus, it is always
> possible to hyperlink directly to a video element using a hash on a
> URL and the value of the id element. But I still wonder what you
> think is missing.

I want to hyperlink directly to a embedded media content at a specific
time while preserving the context without going through brittle
JavaScript hoops. Maybe an element-specific second-hash is possible?

Something like <http://example.org/podcast.html#episode1#t=01:23> could
link to the audio element on the page at a specific point in time. (I
am just conjecturing now, though – is that even legal URL synthax?)

Nils Dagsson Moskopp // erlehmann
Received on Sunday, 25 November 2012 20:35:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:48 UTC