Your Moodle version

Activities: xAPI Launch Link

mod_tincanlaunch
Maintained by Picture of Andrew Downes Andrew Downes
Launch externally xAPI (Tin Can) activities from Moodle and track on any LRS. Compatible with Storyline, Captivate and others!
364
215
9
This plugin lets you launch xAPI activities from a Moodle course and then track them with any LRS. You don't need to upload the activities to Moodle - just host them anywhere on the internet. This is compatible with activities implementing the Rustici launch method as described here: https://github.com/RusticiSoftware/launch/blob/master/lms_lrs.md This includes Articulate Storyline and Adobe Captivate content. 
 
Get the code and give it a go here: https://github.com/garemoko/moodle-mod_tincanlaunch
 
Suggestions, bug reports, code reviews and contributions are very welcome! Watch this space for more xAPI related Moodle plugins in future. 

Sets

This plugin is part of set Tin Can.

Contributors

Picture of Andrew Downes
Andrew Downes (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Andrew Downes
    Thu, Sep 12, 2013, 4:13 AM
    Hi. I've added some installation and use instructions on the development branch. Let me know what you think:

    https://github.com/garemoko/moodle-mod_tincanlaunch/tree/development
  • MD shot of me from his iphone4
    Fri, Oct 4, 2013, 5:13 PM
    on "maturity and release variables"
    - Maturity can be : MATURITY_STABLE, MATURITY_APLHA, MATURITY_BETA, MATURITY_RC. They are defined in lib/setuplib.php in moodle.
    - Release can be whatever you want to call your release, be it a name or a number.
  • Picture of edi edi
    Wed, Jul 1, 2015, 6:59 PM
    Hi Andrew,
    you are writing "Tin Can activities from a Moodle course and then track them with any LRS": I understand that you're launching the tin can web-app which is connecting to an LRS - no communication with moodle at all ... right?

    Is it possible to set up moodle as a LRS or to keep track in some way like usage/results/progress ... ?

    Thanks!
    Edi.
  • Picture of Andrew Downes
    Wed, Jul 1, 2015, 7:09 PM
    Hi,
    There's not direct communication, but there is indirect communication in that Moodle will query the LRS for in order to calculate completion. Moodle can also query the LRS for other data. See for example the Tin Can Learner Stream plugin.
  • Picture of rob jephcote
    Tue, Jul 7, 2015, 10:08 PM
    I am trying to use this plugin with Learning Locker (which I already use successfully) but when trying to launch TinCan using this plugin to launch my Tin Can I get the following error:

    Warning: fopen(http://expertlms.training/learninglocker/public/data/xAPI/agents/profile?agent=%7B%22name%22%3A%22Super+User%22%2C%22mbox%22%3A%22mailto%3Arjephcote%40skynoodle.co.uk%22%2C%22objectType%22%3A%22Agent%22%7D&profileId=CMI5LearnerPreferences): failed to open stream: HTTP request failed! HTTP/1.1 409 Conflict in /var/www/vhosts/s18346665.onlinehome-server.info/httpdocs/moodle/mod/tincanlaunch/locallib.php on line 405

    Warning: stream_get_contents() expects parameter 1 to be resource, boolean given in /var/www/vhosts/s18346665.onlinehome-server.info/httpdocs/moodle/mod/tincanlaunch/locallib.php on line 408

    Warning: stream_get_meta_data() expects parameter 1 to be resource, boolean given in /var/www/vhosts/s18346665.onlinehome-server.info/httpdocs/moodle/mod/tincanlaunch/locallib.php on line 409
    The Learning Record Store is not available. Please contact a system administrator.

    Error attempting to set learner preferences to Agent Profile API.

    array(2) {
    ["contents"]=> bool(false)
    ["metadata"]=> NULL
    }

    Any ideas what I'm doing wrong?
  • Picture of Andrew Downes
    Tue, Jul 7, 2015, 11:07 PM
    Hi Rob,
    This error could be caused by the same user launching the content at exactly the same time. Or it could be a bug in either the plugin or learning locker.
    Are you using the latest code from https://github.com/garemoko/moodle-mod_tincanlaunch ? (I need to do another release here) Are you using the latest release of Learning Locker?

    If you answered yes to both questions, can you also test with SCORM Cloud LRS? https://cloud.scorm.com
  • Picture of John Donaldson
    Thu, Jul 30, 2015, 8:27 PM
    I have this working on a test install of Moodle 2.6, but using tincanlaunch version 2014072300. I installed the latest version of tincanlaunch (version 2015033100) on another test server running Moodle 2.6 and get the following error when trying to launch a tincan session:

    PHP Fatal error: Class 'core\\event\\course_module_viewed' not found in /var/www/moodle/mod/tincanlaunch/classes/event/course_module_viewed.php on line 3

    I looked at that class and it appears to be using something only available in Moodle 2.7 (@since Moodle 2.7). The module instructions indicate all I need is Moodle 2.5, so I'm unsure of how to get this to work with 2.6.
  • Picture of Andrew Downes
    Thu, Jul 30, 2015, 8:49 PM
    Hi John,
    I don't have any plans to make the current version work with older versions of Moodle, but there is an unsupported branch here that should work (missing newer improvements): https://github.com/garemoko/moodle-mod_tincanlaunch/tree/MOODLE_25_STABLE

    If you do want to get the current version working in older versions of Moodle, I suggest your best bet is to try and undo most of this PR: https://github.com/garemoko/moodle-mod_tincanlaunch/pull/38/files

    Hope that helps.

    Andrew
  • Picture of John peater
    Thu, Aug 27, 2015, 6:23 PM
    Hi|
    hope your doing good!
    when you will release moodle 2.9 comparability version ....
  • Picture of Andrew Downes
    Thu, Aug 27, 2015, 6:36 PM
    Hi John,
    Have you tried version 1.1 of the plugin? Are there any compatibility problems with Moodle 2.9? Please raise an issue on Github if there are any problems. I would like this plugin to work with the latest versions of Moodle.

    I don't have any immediate plans to work on this plugin, but am happy to facilitate the pull request process if you want to submit an update.

    Andrew
  • Picture of Andrew Downes
    Fri, Nov 27, 2015, 4:02 AM
    New version for Moodle 3.0 including Tin Can zip package upload coming soon!
  • Picture of kk sagar
    Sat, Apr 2, 2016, 8:18 PM
    Hi all,

    I am in problem related to Tincan plugin.
    I want to know that how to get launch URL and activity ID for the moodle course.
    I need this solution quick.
    Please help me out.

    Thanks.
  • Picture of Andrew Downes
    Tue, Apr 5, 2016, 4:54 PM
    Hi kk sagar,
    The launch url and activity id relate to the activity you want to launch and not to the Moodle course the plugin sits in.

    If you are trying to launch a Moodle course then this is probably the wrong plugin. Can you let us know what your end goal is here?

    If you are trying to launch an e-learning course created in an authoring tool like captivate or storyline, then the easiest thing to do is upload the published zip package. The launch url and activity id will then be automatically populated from the zip.

    Andrew
  • Picture of Craig Ferguson
    Tue, Aug 16, 2016, 6:19 AM
    This plugin is great, I've got it connected to my LRS (GrassBlade) and everything is working perfectly.

    I wish just wondering about the anatomy of the launch link that gets produced - specifically, what is the "Registration" value and how is it determined? From reading the documentation that Rustici has provided, it seems like this is supposed to provide the xAPI statements with information about the activity's context, is that correct? If so, can it be altered? Is there a formula for determining what the Registration should be?

    Craig
  • Picture of Andrew Downes
    Tue, Aug 16, 2016, 9:05 PM
    Hi Craig,
    That's not how registration works; it's just a unique id representing a particular attempt/save.

    Andrew
1 2
Please login to post comments