{"id":38284,"date":"2015-08-19T01:35:04","date_gmt":"2015-08-19T01:35:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/webvtt\/"},"modified":"2017-12-03T23:21:47","modified_gmt":"2017-12-03T23:21:47","slug":"webvtt","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/webvtt\/","author":14554224,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.2","stable_tag":"trunk","tested":"4.9.29","requires":"3.6.0","requires_php":"","requires_plugins":"","header_name":"WebVTT","header_author":"Bobby Walters","header_description":"","assets_banners_color":"","last_updated":"2017-12-03 23:21:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/bobbywalters\/webvtt","header_author_uri":"https:\/\/github.com\/bobbywalters","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2032,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1225717","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1225717","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1234254","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1234254","resolution":"4","location":"assets"}},"screenshots":{"1":"Upload video and associated VTT files following the naming convention.","2":"Video being displayed using the <code>[video]<\/code> shortcode with the VTT tracks available.","3":"Video and VTT attachments display reference links on media library and edit pages.","4":"Localization support on all screens."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[203,549,222,64823],"plugin_category":[50],"plugin_contributors":[92051],"plugin_business_model":[],"class_list":["post-38284","plugin","type-plugin","status-publish","hentry","plugin_tags-html5","plugin_tags-track","plugin_tags-video","plugin_tags-webvtt","plugin_category-media","plugin_contributors-bobbywalters","plugin_committers-bobbywalters"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/webvtt.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/webvtt\/assets\/screenshot-1.png?rev=1225717","caption":"Upload video and associated VTT files following the naming convention."},{"src":"https:\/\/ps.w.org\/webvtt\/assets\/screenshot-2.png?rev=1225717","caption":"Video being displayed using the <code>[video]<\/code> shortcode with the VTT tracks available."},{"src":"https:\/\/ps.w.org\/webvtt\/assets\/screenshot-3.png?rev=1234254","caption":"Video and VTT attachments display reference links on media library and edit pages."},{"src":"https:\/\/ps.w.org\/webvtt\/assets\/screenshot-4.png?rev=1234254","caption":"Localization support on all screens."}],"raw_content":"<!--section=description-->\n<p>Creates any number of HTML5  elements for uploaded WebVTT files for videos displayed using the <code>[playlist]<\/code> and <code>[video]<\/code> shortcodes.<\/p>\n\n<p>The uploaded WebVTT file names must follow this convention to be recognized:\n     +  +  +  +  + '.vtt'<\/p>\n\n<p>With each value described as:<\/p>\n\n<ul>\n<li><code>&lt;video file name&gt;<\/code> The base file name of the video file (without it's extension).<\/li>\n<li><code>&lt;separator&gt;<\/code> A normalized single character separator typically a dash <code>-<\/code> to match the WordPress name normalization pattern.<\/li>\n<li><code>&lt;WebVTT track kind&gt;<\/code> The kind of text track. The kind is defined by the HTML5 specification and may be one of:\n\n<ul>\n<li>captions<\/li>\n<li>chapters<\/li>\n<li>descriptions<\/li>\n<li>metadata<\/li>\n<li>subtitles<\/li>\n<\/ul><\/li>\n<li><code>&lt;separator&gt;<\/code> (defined above)<\/li>\n<li><code>&lt;language code&gt;<\/code> The language of the track text data. This is a lower case 2 character code that represents the language only part of a full BCP 47 language tag. Here's a listing of available <a href=\"http:\/\/www.w3schools.com\/tags\/ref_language_codes.asp\">language codes<\/a> for reference.<\/li>\n<li><code>'.vtt'<\/code> The recognized standard file extension for WebVTT files.<\/li>\n<\/ul>\n\n<p>As an example, a video file named <code>'my-video.mp4'<\/code> would be able to leverage uploaded track files named:<\/p>\n\n<ul>\n<li><code>'my-video-chapters-en.vtt'<\/code> to add English chapters<\/li>\n<li><code>'my-video-subtitles-en.vtt'<\/code> to add English subtitles<\/li>\n<li><code>'my-video-subtitles-es.vtt'<\/code> to add Spanish subtitles<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload entire <strong>webvtt<\/strong> directory to <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Upload new or see existing VTT files with the correct naming convention become available to HTML5 videos displayed using the <code>[video]<\/code> shortcode<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload entire <strong>webvtt<\/strong> directory to <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Upload new or see existing VTT files with the correct naming convention become available to HTML5 videos displayed using the <code>[video]<\/code> shortcode<\/li>\n<\/ol><\/dd>\n<dt>Why aren't my VTT files available with my video?<\/dt>\n<dd><p>The uploaded WebVTT file names must follow this convention to be recognized:\n     +  +  +  +  + '.vtt'<\/p>\n\n<p>This avoids:<\/p>\n\n<ul>\n<li>the need for a settings page<\/li>\n<li>extra meta data fields and trying to keep these in sync<\/li>\n<li>having to re-upload a video when a VTT file is changed or updated<\/li>\n<\/ul>\n\n<p>Please see the Description section for a full explanation of the VTT file name format.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.2<\/h4>\n\n<p>2016-08-28<\/p>\n\n<ul>\n<li>FIX: Removed unneeded <code>empty()<\/code> calls.<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<p>2016-08-28<\/p>\n\n<ul>\n<li>FIX: Updated usage of <code>empty()<\/code> to be compatible with PHP versions prior to 5.5.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<p>2016-08-27<\/p>\n\n<ul>\n<li>NEW: VTTs will now show up when using the <code>[playlist]<\/code> shortcode.<\/li>\n<li>FIX: Sanitize video name when querying for VTTs.<\/li>\n<li>FIX: Retrieve vide name from URL with query parameters.<\/li>\n<\/ul>\n\n<p>Props @leocaseiro.<\/p>\n\n<h4>1.2.0<\/h4>\n\n<p>2015-08-30<\/p>\n\n<ul>\n<li>NEW: Added POT and first translation (Spanish).<\/li>\n<li>NEW: Added screenshots of media library and localization support.<\/li>\n<li>FIX: Better attachment metadata localization handling in media library view.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<p>2015-08-29<\/p>\n\n<ul>\n<li>NEW: Links between video and VTTs are shown in the media library and on edit pages.<\/li>\n<li>NEW: Improved VTT query performance and results can now be cached.<\/li>\n<li>NEW: Filter by <code>Video tracks<\/code> in media library to show only VTT attachments.<\/li>\n<li>NEW: Using <a href=\"https:\/\/github.com\/DevinVinson\/WordPress-Plugin-Boilerplate\">classes plugin boilerplate<\/a>.<\/li>\n<li>FIX: Cleaned up <a href=\"https:\/\/github.com\/WordPress-Coding-Standards\/WordPress-Coding-Standards\">PHPCS WordPress standard<\/a> sniffs.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<p>2015-08-19<\/p>\n\n<ul>\n<li>NEW: Added Screen shots and filled in more readme sections.<\/li>\n<li>FIX: Corrected <code>.vtt<\/code> file names in examples.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<p>Initial release.<\/p>","raw_excerpt":"Add HTML5 text track files to videos.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/38284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=38284"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bobbywalters"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=38284"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=38284"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=38284"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=38284"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=38284"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=38284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}