Player cards in the Twitter Web App, would they be Youtube videos or else, now have the target attribute set to _blank, so links open in a new tab/window, at least in my browser (Edge, MacOS)

Is this a definitive change?

1 Like

I need to integrate the Twitter player card feature for a radio/podcast platform.

I would appreciate an update about this particular card format; in its current implementation it looks like you get the exact same functionality as summary_card, only with a player icon on top of the thumbnail?

Thank you.

I think it depends on the client too (are you looking at these with the web or app?) the soundcloud and bandcamp player cards work for me fine

Yes, in Twitter web, in all the browsers I could try, logged-in or not.
Do you have an example URL that works?

Needless to say, I would appreciate if someone from Twitter could chime in! (before this thread gets automatically closed)

1 Like

Sure - here’s a bandcamp link that loads a player card for me: https://twitter.com/surgeryhead/status/1488534119306997762 and a soundcloud one https://twitter.com/JCarl1972/status/1489302176400912390 so the feature still definitely works

What’s the url where you’re trying to implement the player card?

I just saw https://twitter.com/cadars/status/1487360078340661248 too and this also loads appropriately for me, the player is working on Web Twitter.

1 Like

Thanks for your confirmation and tests! I realized that my browser(s) block all third-party cookies; allowing them solves the issue in Firefox, not in Chromium… :man_shrugging:

1 Like

I would love to know under what conditions exactly target="_blank" gets added to a player card.

1 Like

OK so after some more digging it looks like a user needs to “accept all” cookies from twitter.com in order to open player cards inline in the web app. I find it a little drastic, a lot of people might “allow only necessary cookies” and get a subpar experience without any clear way to change it.

Can someone at Twitter confirm this? Could this be documented somewhere, maybe?

1 Like

I’m not sure what the underlying cookie or script behaviour is for a browser here, unfortunately, but it sounds like you’ve identified the likely reason for what you’ve been seeing. I’m not aware of any changes to the way that player cards work in the past couple of years, either.

Thanks for the info (and sorry for the overly dramatic thread title, I can’t change it apparently).

I believe the target="_blank" is a recent addition though, maybe part of a wider security measure?

If that is the case then I would expect it to be a change in the Twitter web app rather than in the cards themselves, and I don’t have direct insight into that side of things at the time.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.