diff --git a/css/s3-browser.css b/css/s3-browser.css index a8ebb19cd..6d4e89e69 100644 --- a/css/s3-browser.css +++ b/css/s3-browser.css @@ -346,4 +346,14 @@ right: 0; bottom: 0; z-index: 10; +} + +.job-status-completed.attachment-preview { + background: #ccf0cc; +} +.job-status-error.attachment-preview { + background: #fda5a5; +} +.job-status-processing.attachment-preview { + background: #eee69d; } \ No newline at end of file diff --git a/js/media-library-browser-base.js b/js/media-library-browser-base.js index 71222fd80..6d6d7c772 100644 --- a/js/media-library-browser-base.js +++ b/js/media-library-browser-base.js @@ -162,11 +162,20 @@ function fv_flowplayer_browser_browse(data, options) { } } - file.append('
' + var css_class = 'attachment-preview js--select-attachment type-video subtype-mp4 landscape'; + if( options && options.extraAttachmentClass ) { + css_class += ' ' + options.extraAttachmentClass; + } + + if( f.status ) { + css_class += ' job-status-'+f.status; + } + + file.append('
' + '
' + icon + '
' - + '
' + name + '
' + + '
' + name + '
' + '
' + '
' + '
' + @@ -602,9 +611,10 @@ jQuery( function($) { '\t\t\t
\n' + '\t\t\t
\n' + '\t\t\t\t
' + $filenameDiv.text() + '
\n' + - '\t\t\t\t
' + ($filenameDiv.data('modified') != 'undefined' ? $filenameDiv.data('modified') : fSize) + '
\n' + + '\t\t\t\t
' + ( $filenameDiv.data('modified') != 'undefined' ? $filenameDiv.data('modified') : fSize ) + '
\n' + '\n' + - '\t\t\t\t
' + (!fSizeTextual ? (fSize > -1 ? fSize + ' ' + sizeSuffix : fDuration) : '') + '
\n' + + '\t\t\t\t
' + ( !fSizeTextual ? (fSize > -1 ? fSize + ' ' + sizeSuffix : fDuration) : '' ) + '
\n' + + '\t\t\t\t
' + ( $filenameDiv.data('status') != 'undefined' ? $filenameDiv.data('status') : '' ) + '
\n' + '\t\t\t
\n' + (splashValue ? '
Found matching splash screen image
' : '') + '\t\t\n' + diff --git a/models/digitalocean-spaces-browser.class.php b/models/digitalocean-spaces-browser.class.php index ccd355d24..b92019daf 100644 --- a/models/digitalocean-spaces-browser.class.php +++ b/models/digitalocean-spaces-browser.class.php @@ -122,6 +122,8 @@ function get_formatted_assets_data() { $item['items'] = array(); } + $item = apply_filters( 'fv_player_media_browser_item', $item, 'dos' ); + $output['items'][] = $item; if (strtolower(substr($item['name'], strrpos($item['name'], '.') + 1)) === 'ts') { diff --git a/models/media-browser-s3.php b/models/media-browser-s3.php index 4240a5929..bc82aeaab 100644 --- a/models/media-browser-s3.php +++ b/models/media-browser-s3.php @@ -220,6 +220,8 @@ function get_formatted_assets_data() { $item['type'] = 'folder'; $item['items'] = array(); } + + $item = apply_filters( 'fv_player_media_browser_item', $item, 's3' ); $output['items'][] = $item;