Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/add-podcast-episode-block
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: enhancement

Podcast Episode block: new block to embed a single podcast episode from an audio or video file with Podcasting 2.0 metadata.
Comment thread
robertbpugh marked this conversation as resolved.
Outdated
107 changes: 107 additions & 0 deletions projects/plugins/jetpack/extensions/blocks/podcast-episode/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "jetpack/podcast-episode",
"title": "Podcast Episode",
"description": "Embed a single podcast episode from an audio or video file, with Podcasting 2.0 metadata.",
"keywords": [ "audio", "podcast", "episode" ],
"version": "1.0.0",
"textdomain": "jetpack",
"category": "embed",
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M12 2a5 5 0 0 0-5 5v5a5 5 0 0 0 10 0V7a5 5 0 0 0-5-5zm0 2a3 3 0 0 1 3 3v5a3 3 0 0 1-6 0V7a3 3 0 0 1 3-3zm-7 8a1 1 0 0 1 1 1 6 6 0 0 0 12 0 1 1 0 1 1 2 0 8 8 0 0 1-7 7.93V22h3v2H8v-2h3v-1.07A8 8 0 0 1 4 13a1 1 0 0 1 1-1z'/></svg>",
"usesContext": [ "postId", "postType", "queryId" ],
"supports": {
"spacing": {
"padding": true,
"margin": true
},
"anchor": true,
"customClassName": true,
"className": true,
"html": false,
"multiple": true,
"reusable": true
},
"attributes": {
"mediaId": {
"type": "integer"
},
"mediaUrl": {
"type": "string"
},
"mediaType": {
"type": "string",
"enum": [ "audio", "video" ]
},
"mediaMimeType": {
"type": "string"
},
"mediaSize": {
"type": "integer"
},
"episodeNumber": {
"type": "integer"
},
"seasonNumber": {
"type": "integer"
},
"episodeType": {
"type": "string",
"enum": [ "full", "trailer", "bonus" ],
"default": "full"
},
"explicit": {
"type": "boolean",
"default": false
},
"duration": {
"type": "string",
"default": ""
},
"transcriptUrl": {
"type": "string",
"default": ""
},
"transcriptType": {
"type": "string",
"enum": [ "text/vtt", "text/html", "application/srt", "application/json" ],
"default": "text/vtt"
},
"chaptersUrl": {
"type": "string",
"default": ""
},
"locationName": {
"type": "string",
"default": ""
},
"license": {
"type": "string",
"default": ""
},
"licenseUrl": {
"type": "string",
"default": ""
},
"people": {
"type": "array",
"default": []
},
"showPoster": {
"type": "boolean",
"default": true
},
"coverArt": {
"type": "object",
"default": {}
}
},
"example": {
"attributes": {
"episodeNumber": 1,
"seasonNumber": 1,
"episodeType": "full",
"duration": "11:25"
}
}
}
Loading
Loading