Jump to content

IPS 4.6.10: « M4A » audio file missing in \IPS\File


Go to solution Solved by Marc Stridgen,

Recommended Posts

Hi Invision,

M4A files are the audio counterparts of MP4 files for video.
They are HTML5 compatible and work natively in browsers.

Also, in \IPS\File, you should add 'm4a' to:

public static $safeFileExtensions

public static $audioExtensions

And in $fileIconMap :
'm4a' => 'file-audio-o',

 

Thank you!

Link to comment
Share on other sites

Hi Marc,

Thank you!

Oh, and I forgot, it also needs to be added in the ips.ui.uploader.js javascript:

line 14:

var iconMap:

'm4a': 'file-audio-o',

line 915:

if( [ 'mp3', 'ogg', 'wav', 'm4a' ].indexOf( file.name.substr( ( ~-file.name.lastIndexOf(".") >>> 0 ) + 2 ).toLowerCase() ) !== -1 ){
	isAudio = true;
}

 

Link to comment
Share on other sites

3 minutes ago, LaCollision said:

Hi Marc,

Thank you!

Oh, and I forgot, it also needs to be added in the ips.ui.uploader.js javascript:

line 14:

var iconMap:

'm4a': 'file-audio-o',

line 915:

if( [ 'mp3', 'ogg', 'wav', 'm4a' ].indexOf( file.name.substr( ( ~-file.name.lastIndexOf(".") >>> 0 ) + 2 ).toLowerCase() ) !== -1 ){
	isAudio = true;
}

 

Thats ok. Our devs will pick up anywhere else its needed

Link to comment
Share on other sites

  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...