Fix a Player Card Using Its Metadata Source Lines
Admin ·
Use saved HTML to review which tags form a share card. The canal audio tour example contains both Twitter fields and Open Graph values, so you can trace the selected title alongside the player and image declarations.
Repair the canal audio tour’s Player Card
Load the example and validate. The player at line 9 uses HTTP and the width at line 10 includes px. Change the player to HTTPS and replace 640px with 640. The height already declares 360 pixels.
Remove the SVG image on line 12 and keep the PNG declaration. Add twitter:image:alt in the head to describe the image. Remove the misplaced body tag. Validate again and check that the selected title reads Lock gates & night shifts from og:title.
X Developer Platform Card markup reference (archived)X Developer Platform Player Card reference (archived)HTML Standard head metadata and meta element
Check the selected values and the declarations they came from
The report displays the selected content alongside the field name and source line. A Twitter title in the head supplies its own value. An Open Graph title can be used where a usable Twitter title is absent.
When a field is repeated, remove unused copies in the template and validate again. This report uses the last card type and the first declaration of other Twitter fields for its checks.
X Developer Platform Card markup reference (archived)X Developer Platform getting started with Cards (archived)
Confirm the actual player and image where they are served
A suitable HTTPS address and filename can still serve unexpected content. Check the published player, image content type, and image size at the source, then review the share result in the client you use.
Use the JSON report to record the saved markup findings. An annotation recognized in a comment or field list records what the source said about a workflow run.
X Developer Platform Card markup reference (archived)X Developer Platform Player Card reference (archived)
Common questions
Can I validate summary markup without a network request?
Yes. Paste the saved HTML or the card field list. The analyzer reads the declared values in your browser and shows the source of each fallback.
Why does the report flag a relative image URL?
The card metadata should identify the public image with an absolute HTTP or HTTPS URL. Player Card media uses HTTPS.