I get "SCRIPT16385: Not implemented" on jquery.media.file.js?r, line 32 character 7 when trying to play an audio file. That error is thrown on the first return statement of this script.
// Checks the file type for browser compatibilty.
jQuery.media.checkPlayType = function( elem, playType ) {
if( (typeof elem.canPlayType) == 'function' ) {
return ("no" !== elem.canPlayType(playType)) && ("" !== elem.canPlayType(playType));
}
else {
return false;
}
};
I'm using PHP to display the player on a clean Drupal 6.26 install with MediaFront 6.x-1.5.
$audio_node = node_load(1);
$element = array('#formatter' => 'audio_', '#node' => $audio_node);
$player = theme('mediafront_formatter_audio_player', $element);
print $player;
It works perfectly in Chrome and Firefox. I've attached a screenshot of the debugging console.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1670536_mediafront_fix-ie-exception.patch | 1.05 KB | mstrelan |
| osmplayer-ie9.js_.png | 187.4 KB | mstrelan |
Comments
Comment #1
mstrelan commentedIt turns out that this bug has been reported in the Modernizr javascript library which Paul Irish has committed a workaround for. I have based this patch on his workaround. Not sure what you're doing to generate the compressed files so I've just provided the patch for culprit source file.
For more info see https://github.com/Modernizr/Modernizr/issues/224
Note that I'm not on Windows Server, so it is also the desktop that is affected.
Comment #2
bhosmer commentedCan you test with the latest and report back if this is still an issue?