scorm | Parse and create SCORM packages
kandi X-RAY | scorm Summary
kandi X-RAY | scorm Summary
Created and maintained by Per Christian B. Viken (perchr@northblue.org). Released under the MIT license.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Converts the date to a date .
- Parse the interval .
- Format the number of seconds .
- Returns true if the date is nil .
- Check if the action is valid
scorm Key Features
scorm Examples and Code Snippets
Community Discussions
Trending Discussions on scorm
QUESTION
I have to do a college project, where I have to do an LMS, and one of the requirements is to allow the import of SCORM files. However, when I went to research I saw something about SCORM using the flash player, which ended support this year. Can anyone answer the question if SCORM really needs the flash player to work?
...ANSWER
Answered 2021-Mar-11 at 14:24No. The only hard technical requirement is a JavaScript environment (or an environment that sufficiently mimics a JavaScript environment) which is why SCORM is very often considered a browser based specification. "Browsers" and therefore JS environments are finding their way into all kinds of places.
QUESTION
I am trying to open my SCORM education in a new window but when i do, all the reporting stops working (The same goes if i do it in an iframe). When i just do location.href = scormURL; then it works fine. My scorm file is in a different domain then the LMS.
It seems like the SCORM api doesn't get initialized after doing loadFromJSON(response) on my scorm response. But this problem only occurs when i open in a new window or show the scorm education in an iframe.
I use SCORM2004.
EDIT: It was XSS problem and it was solved by routing to azure CDN via ocelot gateway to get the same domain.
...ANSWER
Answered 2021-Mar-04 at 04:04My scorm file is in a different domain then the LMS.
This is your problem.
The only link the SCORM package has to your LMS (and therefore to your reporting) is the SCORM API. Modern browsers do not allow CORS (cross-origin resource sharing) by default because it opens you to XSS (cross-site scripting) attacks.
The package may be able to find the API if one exists on the external domain, but it will not be able to communicate with the LMS directly.
The way I worked around this was to add a wrapper .js
file on the external domain that hosted the SCORM API and used Window.postMessage
to pass calls back to the LMS.
You then use window.open
or your iframe
to open a page on the external domain which has access to scorm_wrapper.js
and its own iframe
that hosts your package.
Because the Window.opener
method is not reliable and not fully-featured when the current window
was opened from a different origin, we will use the domain directly.
Since we control the LMS, we know the domain it is running on and since we just opened the package, we know it should be active. We can postMessage
it to ask for a reply.
QUESTION
I have a view under my elearning app named home(), which should load index.html from within the app's directory. Instead it loads an instance of index.html from a different app (symposium/templates/index.html). It should be loading it from (elearning/templates/index.html).
Can someone please explain why this is happening and how to fix it?
...ANSWER
Answered 2021-Mar-14 at 22:25Django searches for a templates folder within each app for the relevant template to render. Looks like the first it found was index.html
from within the symposium
app.
The convention of directory structure for templates is to put your templates within another folder with the name of the app in order to avoid this exact situation with templates of the same name.
Move your index.html
file from
/elearning/templates/index.html
to
/elearning/templates/elearning/index.html
and then change your home view function to
QUESTION
IMPORTANT EDIT: The logic described below appears to be all correct. The root of my issue was actually being caused by the utility we used to push new data to the ES database, not with the query itself. I have accepted the answer that says that the query works as intended.
I have an Elasticsearch server whose mapping looks like this (as output by curl 'elastic:9200/resourcelibrary/_mapping
):
ANSWER
Answered 2021-Jan-12 at 03:10This might help to solve & analyze your problem locally.
I have created the index:
PUT /resourcelibrary
QUESTION
I have installed a moodle environment and uploaded a SCORM package. I run all my courses through SCORM therefore the additional activities are not needed.
Is there any way I can make the Course button link directly into the SCORM package to cut the additional clicking?
...ANSWER
Answered 2020-Nov-20 at 19:19Here are a couple options:
Select the "single activity" course format: This prevents the /course/view.php page from appearing. Users still have to click a button to enter the SCORM activity, but takes clicks and page views out of the UX. This option can be selected in the course settings.
Customize: Create a version of the SCORM activity that launches without requiring the user to click the entry button on the SCORM activity page. This requires replicating what occurs when the the user clicks the entry button on the SCORM page, but is possible.
Hope one of these is helpful - good luck w/ it!
QUESTION
Having worked with e-learning authoring tools in the past, I'm a bit familiar with SCORM but not in great detail, and recently have heard of Tin Can / xAPI. In how those often relate to LMS's, I'm familiar with the concept of uploading a zipped learning object that has the code needed to communicate w/the LMS to record completions, scores, and so forth via the SCORM / xAPI specs.
I’m wondering whether a different setup is possible: if an LMS is said to support SCORM and/or xAPI, can a custom-programmed learning object at a URL external to an LMS (i.e. not an uploaded zip), typically communicate w/the LMS equally well, such as via displaying the learning object in an iframe and the learning object having SCORM or xAPI calls to the parent window? My hunch is yes, because I believe the uploaded-zip route utilizes iframes, but having little experience in custom-programming SCORM / xAPI integrations, I don't know if there's something I'm missing about cross-domain issues, limitations on SCORM / xAPI specs perhaps, etc.
If it is possible, any tips or gotchas are welcome.
...ANSWER
Answered 2020-Sep-25 at 15:52For comparable use with xAPI as the communication protocol I'd recommend considering the cmi5 profile. It is intended specifically for the packaging and LMS launch scenario while leveraging xAPI as its data storage and communication mechanism.
cmi5 provides for a mechanism to launch into remotely hosted content (AU) and provides via the launch URL enough information then to communicate back to the LMS/LRS in a cross origin way. xAPI is itself compatible with this approach assuming the LRS can provide the correct CORS headers (most do).
SCORM does not generally work (natively) in this type of setup because it is based on a JavaScript API that must be made accessible to the content itself which generally can't be accessed across different origins. There are ways around this, but they are supplements to the core specification.
QUESTION
I split the sql queries into 3 and now the queries look like this.
...ANSWER
Answered 2020-Sep-10 at 11:32First your current code is vulnerable to sql injection, you really should use parameters Moodle Documentation. I'd also break modules out into another query.
QUESTION
I am aware there are plenty of similar questions, the only difference is I get this for two pages I serve from the **same ** domain. This can be seen in the example below.
...ANSWER
Answered 2020-Aug-21 at 01:43The issue has been resolved, and it is specific to the SCORM protocol.
When you open a piece of SCORM content, which is a bunch of html,flash,js and other media files, the first thing it does is trying to find the SCORM api.
The SCORM api is JS that has to be in the window that loads the SCORM content.
In some SCORM packages, the function that looks for the API, looks recursively for the TOP window, i.e. the initial window that started the entire process.
In my case it was a window on my site, that poped the SCORM launcher on my CDN, which has a different domain name.
All I had to do to solve this issue, is cheat the browser to think the SCORM launcher (the window I poped on the CDN) is the TOP, by adding the following two js lines in it:
QUESTION
ANSWER
Answered 2020-Aug-17 at 14:07actor
is not one of the available query parameters. You would need to use agent
, and to filter statements by an Agent you have to provide the IFI, in your case the account
value, name
is not an acceptable identifier in xAPI so it can't be used as a filter value. The list of available properties matches the set of query string parameters listed in the GET /statements
resource here: https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#213-get-statements
QUESTION
I'm trying to follow Databricks
Academy Spark SQL course and I'm practising in Databricks
community edition. At a point, I need to create a table from a CSV. This is CSV link.
I'm trying to create the table with UI. I'm checking "First row is header" and "Infer Schema" boxes. birthDate
field is being shown as String in the preview pane. According to the course material, it should be Timestamp. But if I change field type to Timestamp, the data is loaded with null values. If I leave the birthDate
field as it was (String
), data is loading properly.
How can I deal with this issue?
Sample data in birthDate
field :
...1999-09-13T04:00:00.000+0000
ANSWER
Answered 2020-Jun-28 at 15:11inferSchema
for CSV file expects data in the specific format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX
, and the XXX
pattern is matching to following specification of the timezone: Z; -08; -0830; -08:30; -083015; -08:30:15;
, that doesn't match your data.
To fix this you may revert to the creating a table via notebook, and add following option to specify the timestamp format: .option("timestampFormat", "yyyy-MM-dd'T'HH:mm:ss.SSSZ")
, the whole read command would look as following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install scorm
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page