Make WordPress Core


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

Audio/Video shortcodes in the media modal:

  • Make a generic model, wp.media.model.PostMedia, which replaces wp.media.model.PostAudio and wp.media.model.PostVideo
  • Make a generic library, wp.media.controller.MediaLibrary, which replaces wp.media.controller.ReplaceVideo and wp.media.controller.ReplaceAudio
  • wp.media.controller.MediaLibrary is used to create new states that want to load a library filtered by type, making it incredibly simple to add states to frames. See wp.media.view.MediaFrame.VideoDetails and wp.media.view.MediaFrame.AudioDetails.

UX changes:

  • Add the ability to manage HTML5 fallbacks - add additional <source>s or remove specific <source>s
  • In the Video Details state, add the ability to select a poster image

See #27016.

File:
1 edited

Legend:

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

    r27476 r27478  
    24442444        'editImage'             => __( 'Edit Image' ),
    24452445
    2446         // Edit Image
     2446        // Edit Audio
    24472447        'audioDetailsTitle'     => __( 'Audio Details' ),
    24482448        'audioReplaceTitle'     => __( 'Replace Audio' ),
     2449        'audioAddSourceTitle'   => __( 'Add Audio Source' ),
    24492450        'audioDetailsCancel'    => __( 'Cancel Edit' ),
    2450 
    2451         // Edit Image
     2451        'audioDetailsText'      => __( '"Replace Audio" will remove all associated source files when you update. ' .
     2452            '"Add Audio Source" allows you to specify alternate sources for maximum native HTML5 audio playback.' ),
     2453        'audioRemoveSource'     => __( 'Remove Audio Source' ),
     2454
     2455        // Edit Video
    24522456        'videoDetailsTitle'     => __( 'Video Details' ),
    24532457        'videoReplaceTitle'     => __( 'Replace Video' ),
     2458        'videoAddSourceTitle'   => __( 'Add Video Source' ),
    24542459        'videoDetailsCancel'    => __( 'Cancel Edit' ),
     2460        'videoDetailsText'      => __( '"Replace Video" will remove all associated source files when you update. ' .
     2461            '"Add Video Source" allows you to specify alternate sources for maximum native HTML5 video playback.' ),
     2462        'videoRemoveSource'     => __( 'Remove Video Source' ),
     2463        'videoSelectPosterImageTitle' => _( 'Select Poster Image' ),
     2464        'videoRemovePoster'     => __( 'Remove Poster Image' ),
    24552465
    24562466        // Playlist
Note: See TracChangeset for help on using the changeset viewer.