-
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
[amp-story] Publisher identity #33353
Comments
Option 2 and 3 can't work as we can't make a runtime feature available to only one player. It'd have to be a general Player API, nothing tied to how we configure the open source Player we distribute. We shouldn't make references to the However, I believe the answer to this question should be in our PRD: do we want the Player to control the identity information, or each individual story? This is a product question and not an eng question, we can then adapt our design based on what's in the PRD. About Option 1, do we want the only option to be linking to the publisher homepage? In other words, if Platform decides to use this on their Web Stories, would their only option be showing |
Thanks for chiming in, Gabriel! Strong preference for option 1, though I think 2 and 3 can work (though, yes, they would be amp-story-player features, and not have anything to do with the story).
The intention is that the identity is per-story (i.e., there can be a mix of publishers in the same player). As for which code is actually rendering the information, I agree with the question (and cc @raovs). My personal opinion is that it would be a good precedent to set that the story controls it (that's why we ask for metadata). Letting the player control it is a great way for someone to fake ownership (which, of course there are other ways to do). I think of this as analogous to a YouTube embed pulling the creator information from YouTube, rather than letting you specify an arbitrary creator when embed it.
Again /cc @raovs, but I think it would make sense for us to allow them to link to the authoritative webpage for the publisher. We have both publisher and entity metadata; I think it makes sense to allow specifying a URL for both (a la |
Summarize recent discussions:
|
nit: top left, right? |
Describe the new feature or change to an existing feature you'd like to see
We would like to add support for adding publisher identity in stories. This would come in the form of a logo and publisher name that when clicked would take to the publisher's site.
Requirements
Source of data
[Selected] Option 1: Story's metadata
We will extract the publisher's logo and name from the existing required fields
publisher
andpublisher-logo-src
. If provided, we will useentity-url
to navigate when clicking on the attribution. Otherwise, we will fallback to the document's canonical URL's domain.Option 2: amp-story-player level markup
amp-story
andamp-story-player
markup.Option 3: Player's JSON config + APIs
Would require:
player.updateControl()
API to update the controls dynamically.Tasks
The following high-level tasks must be completed:
@ampproject/wg-stories
@ampproject/wg-viewers
The text was updated successfully, but these errors were encountered: