Skip to Content
author's profile photo Former Member
Former Member

SAP Authoring tool - problem with sound

We are delivering HTML courses which are SCORM compliant courses.

This courses plays wine in scorm open cloud (https://cloud.scorm.com/) but they do not works fine on SAP content player.

We are working with SAP Authoring Tool version LSO 6.04_11:1

After importing course via Authoring Environment and trying to play a course no sound are played.

We have succeed to play sound only via flash player but with pure HTML courses we always have a problem.

When we open a chrome console all mp3 files are 404 (NOT FOUND)

Here is a full request and response headers:

Remote Address:127.0.0.1:49910

Request URL:http://127.0.0.1:49910/lms/media/(1.XXX.0.5732618.)/my_course/my_course/runtime_media/sound/eng/count_1.mp3

Request Method:GET

Status Code:404 404 (NOT FOUND): /lms/media/(1.XXX.0.5732618.)/my_course/my_course/runtime_media/sound/eng/count_1.mp3

-----------------

Request Header

-----------------

GET /lms/media/(1.XXX.0.5732618.)/my_course/my_course/runtime_media/sound/eng/count_1.mp3 HTTP/1.1

Host: 127.0.0.1:49910

Connection: keep-alive

Accept-Encoding: identity;q=1, *;q=0

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36

Accept: */*

Referer: http://127.0.0.1:49910/lms/media/(1.XXX.0.5732618.)/my_course/my_course/start_page.html

Accept-Language: en-US,en;q=0.8,sr;q=0.6,es-419;q=0.4,es;q=0.2

Cookie: JSESSIONID=62F306F8F6BFBDBCD91AE22D2BA44F01

Range: bytes=0-

-----------------

Response Headers

-----------------

HTTP/1.1 404 404 (NOT FOUND): /lms/media/(1.XXX.0.5732618.)/my_course/my_course/runtime_media/sound/eng/count_1.mp3

Server: Apache-Coyote/1.1

Cache-Control: no-cache

Content-Type: text/html;charset=utf-8

Content-Length: 1331

Date: Wed, 10 Dec 2014 15:21:11 GMT

Any idea how to manage to play sound on HTML SCORM compliant course without use of a flash player?

Here you can find example course which has a problem with sound:

https://www.dropbox.com/s/mkx2g4eiz7xng6t/sap_test.zip?dl=0

Thanks in advance,

Dragan

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2014 at 04:22 PM

    Hi Dragan, we have found that we can only use Windows Internet Explorer as the browser for the content player. Neither Mozilla Firefox, Google Chrome or Safari were recommended at our go-live in 2012 and a number of our users' issues have originated from one of these unapproved browsers. Our help desk coaches users to retry in IE and often the problem resolves itself. Have you tried IE?

    Also - we are unable to play our courses outside the firewall when the learner uses a Citrix connection to access the network. Our Citrix connection currently doesn't handle media-rich courses with audio & video well.

    Hope this helps

    Best regards,

    Connie Lyndon

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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=<start>-<end>"

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.