本文介绍了寻找符合SCORM标准课程例如,在纯HTML与不使用闪光灯MP3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找没有flash播放器与MP3 HTML符合SCORM标准课程的例子。
我需要找到符合SCORM标准过程中使用HTML5音频其播放MP3。

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.

相关问题:
How以启用SAP创作工具中的MP3内容类型

在那张贴在SAP门户disaparred这里的情况是它的一个副本:

In a case that post on SAP portal disaparred here is a copy of it:

我想我已经找到为什么MP3是也没有在SAP contewnt播放器上播放。
这个问题在com.sap.hcm.ls.lms.servlets.control.MediaHandler类

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正试图通过MediaHandler服务器的MP3文件,但有一个bug。
这是一个问题code:

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);
    }
  }

首先,它从头部提取范围,并预计将在格式字节= -
因此,有效的值可以是如字节= 0-100或字节= 0-200
但在我们的例子中范围的值为字节= 0-,所以它不能解析上的:

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 exampleBut in our case "Range" has value "bytes=0-" so it fails on parsing on:

int end = Integer.parseInt(range.substring(inx + 1).trim());

内部错误在最后处理过程中捕获部分返回404:

Inside catch section during error handling at the end it returns 404:

response.sendError(404, "404 (NOT FOUND): " + path);

这是虚假信息。 SAP是在标题属性处理错误解析很简单 - 它说,这种资源不存在!
这是非常糟糕的。这将是很好给一些反馈,让用户获得MP3为什么不播放信息。
所以definitelly这是SAP内容播放器BUG。

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.

推荐答案

您可以看看这个过程:

我添加了具有MP3最页

I've added most pages that have an mp3

<一个href=\"http://cloud.scorm.com/sc/InvitationConfirmEmail?publicInvitationId=2dd55b2c-8ec1-4e8a-b958-3ddc493301b5\" rel=\"nofollow\">http://cloud.scorm.com/sc/InvitationConfirmEmail?publicInvitationId=2dd55b2c-8ec1-4e8a-b958-3ddc493301b5

您可以在这里下载课程包:

You can download the course package here:

一个SCORM课程 - 在这种情况下SCORM 1.2,带MP3是不是从一个标准的HTML课程有什么不同。我只是说在大多数页面如下:

A SCORM course - in this case SCORM 1.2, with an MP3 is not any different from a standard HTML course. I just added the following in most pages:

<audio controls>
 <source src="../golf.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

不过,我想我明白你的心思,你看最SCORM课程,你在网上看到很多闪光的东西。你可以找到的SCORM课程,无论是在下面的链接1.2和2004年所有的HTML例子:

But I think I understand what you are thinking about, most scorm courses you see online you see a lot of Flash. You can find all HTML examples of SCORM courses both 1.2 and 2004 in the link below:

这篇关于寻找符合SCORM标准课程例如,在纯HTML与不使用闪光灯MP3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 11:33