Updated the audio display <source> element
authorJoar Wandborg <git@wandborg.com>
Mon, 16 Apr 2012 08:43:50 +0000 (10:43 +0200)
committerJoar Wandborg <git@wandborg.com>
Mon, 16 Apr 2012 08:43:50 +0000 (10:43 +0200)
as per
<http://www.w3.org/TR/html5/the-source-element.html#attr-source-type>.

This closes bug <http://issues.mediagoblin.org/ticket/435>.

mediagoblin/templates/mediagoblin/media_displays/audio.html

index 36bd9d1d8e30c0aa028b80d3049f27cd734f53d1..3efd80e1c3919434b24d8f762404b7af8ad9b4d1 100644 (file)
@@ -37,7 +37,7 @@
     <audio class="audio-player" controls="controls"
           preload="metadata">
       <source src="{{ request.app.public_store.file_url(
-                      media.media_files.ogg) }}" type="video/webm; encoding=&quot;vorbis&quot;" />
+                      media.media_files.ogg) }}" type="audio/webm; codecs=vorbis" />
       <div class="no_html5">
        {%- trans -%}Sorry, this audio will not work because 
        your web browser does not support HTML5