Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 5 years ago.
I am looking for any example of HTML SCORM compliant course with mp3 without flash player. I need to find scorm compliant course which plays mp3 using HTML5 audio.
Related question: How to enable mp3 content type in SAP Authoring Tool
In a case that post on SAP portal disaparred here is a copy of it:
I think I have found why mp3 is nor played in SAP contewnt player. The problem is in com.sap.hcm.ls.lms.servlets.control.MediaHandler class
SAP is trying to server mp3 file via MediaHandler but there is a bug. This is a problematic code:
String range = request.getHeader("Range");
MediaLoader.ByteRange rangeSpec = null;
if ((range != null) && (range.startsWith("bytes=")))
{
range = range.substring(6);
int inx = range.indexOf("-");
if (inx > 0)
{
int start = Integer.parseInt(range.substring(0, inx).trim());
int end = Integer.parseInt(range.substring(inx + 1).trim());
rangeSpec = new MediaLoader.ByteRange(start, end);
}
}
First it extracts "Range" from header and expect to be in format "bytes=-" So valid value could be "bytes=0-100" or bytes=0-200 for example But in our case "Range" has value "bytes=0-" so it fails on parsing on:
int end = Integer.parseInt(range.substring(inx + 1).trim());
Inside catch section during error handling at the end it returns 404:
response.sendError(404, "404 (NOT FOUND): " + path);
which is false information. SAP is handling error on header attribute parsing very simple - it says that such resource not exists! This is very bad. It would be nice to give some feedback to allow users to get info why mp3 is not playing. So definitelly this is SAP content player BUG.