Skip to content

Commit

Permalink
Add audio/x-wav as a default audio type
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Nov 19, 2015
1 parent d9d9018 commit b78c205
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Html5MediaPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function hookInstall()
'width' => 400
),
'types' => array(
'audio/mpeg', 'audio/mp3', 'audio/wav', 'audio/m4a',
'audio/wma', 'audio/mp4'
'audio/mpeg', 'audio/mp3', 'audio/wav', 'audio/x-wav',
'audio/m4a', 'audio/wma', 'audio/mp4'
),
'extensions' => array('mp3', 'm4a', 'wav', 'wma'),
),
Expand Down Expand Up @@ -74,6 +74,9 @@ public function hookUpgrade($args)
if(!in_array('audio/mp4', $settings['audio']['types'])) {
$settings['audio']['types'][] = 'audio/mp4';
}
if (!in_array('audio/x-wav', $settings['audio']['types'])) {
$settings['audio']['types'][] = 'audio/x-wav';
}
}
set_option('html5_media_settings', serialize($settings));
}
Expand Down

0 comments on commit b78c205

Please sign in to comment.