Make WordPress Core


Ignore:
Timestamp:
03/09/2014 10:31:36 AM (11 years ago)
Author:
wonderboymusic
Message:

Video editing in the media modal:

  • Add a state: Add Subititles
  • Add text/vtt to the list of allowed mime-types, files end in .vtt. .srt files are served as text/plain.
  • The content body of a video shortcode should be used for adding <track> elements only. This happens dynamically in the modal. If added by hand, they can still be parsed and managed.

See #27016.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r27478 r27481  
    23962396        'update'      => __( 'Update' ),
    23972397        'replace'     => __( 'Replace' ),
    2398         'back'     => __( 'Back' ),
     2398        'remove'      => __( 'Remove' ),
     2399        'back'        => __( 'Back' ),
    23992400        /* translators: This is a would-be plural string used in the media manager.
    24002401           If there is not a word you can use in your language to avoid issues with the
     
    24512452        'audioDetailsText'      => __( '"Replace Audio" will remove all associated source files when you update. ' .
    24522453            '"Add Audio Source" allows you to specify alternate sources for maximum native HTML5 audio playback.' ),
    2453         'audioRemoveSource'     => __( 'Remove Audio Source' ),
    24542454
    24552455        // Edit Video
     
    24602460        'videoDetailsText'      => __( '"Replace Video" will remove all associated source files when you update. ' .
    24612461            '"Add Video Source" allows you to specify alternate sources for maximum native HTML5 video playback.' ),
    2462         'videoRemoveSource'     => __( 'Remove Video Source' ),
    24632462        'videoSelectPosterImageTitle' => _( 'Select Poster Image' ),
    2464         'videoRemovePoster'     => __( 'Remove Poster Image' ),
     2463        'videoAddTrackTitle'    => __( 'Add Subtitles' ),
    24652464
    24662465        // Playlist
Note: See TracChangeset for help on using the changeset viewer.