Author Topic: .ogg files being incorrectly identified as video/ogg  (Read 937 times)

thebugcast

  • Newbie
  • Posts: 6
.ogg files being incorrectly identified as video/ogg
« on: August 30, 2014, 04:17:28 pm »
Hey guys,

According to the xiph.org wiki - here -  the correct mime type for a .ogg file is audio/ogg, and not video/ogg as currently presented by PowerPress.

Cheers,
Dave

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: .ogg files being incorrectly identified as video/ogg
« Reply #1 on: September 01, 2014, 02:08:09 pm »
You are right. This somehow fell through the cracks. We added a define option that when added, makes 'ogg' file extension work as Video, when not present it works as audio. Apparently the logic wasn't applied to the get content type function. Will be fixed in the next release.

If you do OGG video with the ogg file extension, you need to add the following define to your wp-config.php:

Code: [Select]
define('POWERPRESS_OGG_VIDEO', true);
Otherwise file.ogg will be treated as an audio file.