Commit 556fec95 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-417] Set defaults for video file type file display

parent d1bdb024
......@@ -92,6 +92,16 @@ function media_mediahub_file_default_displays() {
// Default settings for displaying as a video.
$default_video_settings = array(
'default' => array(
'width' => 480,
'height' => 360,
'autoplay' => FALSE,
),
'teaser' => array(
'width' => 480,
'height' => 360,
'autoplay' => FALSE,
),
'media_large' => array(
'width' => 480,
'height' => 360,
......@@ -119,9 +129,12 @@ function media_mediahub_file_default_displays() {
// WYSIWYG editor. The higher weight ensures that the video display is used
// where possible.
$default_image_styles = array(
'default' => 'large',
'preview' => 'medium',
'teaser' => 'large',
'media_preview' => 'square_thumbnail',
'media_large' => 'large',
'media_original' => ''
'media_original' => '',
);
foreach ($default_image_styles as $view_mode => $image_style) {
$display_name = 'video__' . $view_mode . '__media_mediahub_image';
......
name = Media: MediaHub
description = Provides MediaHub support to the Media module.
description = Provides MediaHub support for the Media module.
package = "Media"
core = 7.x
version = "7.x-1.0-beta1"
files[] = media_mediahub.module
files[] = includes/MediaInternetMediaHubHandler.inc
files[] = includes/MediaMediaHubStreamWrapper.inc
......@@ -10,6 +11,5 @@ files[] = includes/MediaMediaHubStyles.inc
files[] = includes/media_mediahub.formatters.inc
files[] = includes/media_mediahub.styles.inc
files[] = includes/media_mediahub.variables.inc
dependencies[] = media_internet
version = "7.x-1.0-beta1"
\ No newline at end of file
dependencies[] = media_internet
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment