Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-938 SCORM player
  3. MOBILE-1303

Support the API runtime (online mode only)

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: SCORM add-on
    • Labels:
    • Testing Instructions:
      Hide
      • This is a simple initial request of peer-review, we need to do an initial integration so we can start using the API from the player.

      This issue won't be closed until everything is working so more peer-review requests are expected.

      How to integrate the player with the API:

      The $mmaModScormDataModel12 service exports two methods,

      1. initAPI (scorm, scoId, attempt, userData) - This expose the API via the window object, it should be called when the first SCO is loaded. We must be carefull and remove the API from the window object when we live the SCORM package (userData is the result of calling get_scorm_user_data)
      2. loadSco (scoId) - This should be called when a new SCO is loaded in the app (sco or asset). Note that the mmaModScormEventLaunchNextSco and mmaModScormEventLaunchPrevSco event handlers should call this method with the new scoId. If the sco is an asset, we must call the saveTracks function with this parameters (cmi.core.lesson_status => completed)
      Show
      This is a simple initial request of peer-review, we need to do an initial integration so we can start using the API from the player. This issue won't be closed until everything is working so more peer-review requests are expected. How to integrate the player with the API: The $mmaModScormDataModel12 service exports two methods, initAPI (scorm, scoId, attempt, userData) - This expose the API via the window object, it should be called when the first SCO is loaded. We must be carefull and remove the API from the window object when we live the SCORM package (userData is the result of calling get_scorm_user_data) loadSco (scoId) - This should be called when a new SCO is loaded in the app (sco or asset). Note that the mmaModScormEventLaunchNextSco and mmaModScormEventLaunchPrevSco event handlers should call this method with the new scoId. If the sco is an asset, we must call the saveTracks function with this parameters (cmi.core.lesson_status => completed)
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE

      Description

      Implement the basic run-time with the communication bridge to support the read/write operations.

      Note, data initially won't be stored, it will be stored directly in the server via Web Services (online mode, the user must be connected)

      For offline, see following issues

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Juan Leyva Juan Leyva
            Integrator:
            Juan Leyva Juan Leyva
            Tester:
            Juan Leyva Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              22/Jan/16