Tips & Tricks

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

Moodle Wrapper with a SCORM package issues

  • dave
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 8 months ago #1 by dave
I've come across a few issues with the SCORM player using the Joomdle wrapper

1. When the SCORM content has finished a user is prompted to click the "Exit Activity" link in the top right of the page. Doing this redirects them to the moodle course view instead of the joomdle wrapper.



I saw this post which had the same issue when viewing SCORM in a popup
www.joomdle.com/forum/how-to-general/113...-scorm-package#16585

2. SCORM content that is viewed using the wrapper has issues displaying the entire package in Chrome and Safari.
Only the top portion of the scorm package gets displayed initially or not at all



after multiple refreshes of the page the content displays fully

Please Log in or Create an account to join the conversation.

  • dave
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 8 months ago #2 by dave
i'm using joomla 3.4.3, joomdle 1.02, moodle 2.8.7+

I've verified that the issue with the scorm package not displaying only happens when its opened through joomla/joomdle. it works fine if i go directly to moodle and launch the scorm package.

i came across a post from some time ago in moodle which suggested using the following css as a fix but after applying to both my moodle template and my joomla template css override it doesn't have any effect

/* set up the keyframes */
@-webkit-keyframes nodeInserted {
  from { opacity: 0.99; }
  to { opacity: 1; }
}
/* force a repaint with a super short duration */
#scorm_content > iframe
{
  -webkit-animation-duration: 0.001s;
  -webkit-animation-name: nodeInserted;
}

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Moodle Wrapper with a SCORM package issues
Hi.

I am sorry, but I don't think we can help with any of those problems.

1. SCORM modulue has the exit link fixed to go to the course page, so only way to go would be to modify SCORM mod code, something I would not recommend.

2. As for the activity not showing well in wrapper: I guess this depends on the activity, as others are showing fine.
I am no expert on CSS and related stuff, so I don't know how could you solve that problem via CSS.

Please Log in or Create an account to join the conversation.

  • dave
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 8 months ago - 10 years 8 months ago #4 by dave
i've done some additional testing and have resolved the issues i was having with the scorm packages not fully loading. the issue with chrome was resolved by turning off Auto Height in joomdle configuration and setting a fixed height for the content. doing this in moodle had no effect. this worked for me but may cause issues with others that use moodles quiz or other modules as the height can vary between these activities. my scorm content only needed 680 pixels in height for instance. if i used the quiz activity in moodle and had 20 questions per page this wouldn't work. Again - this was only an issue with chrome.

as for the Exit Activity link - i decided to just remove it from the scorm player module and use the scorm goodbye.html message once the activity is completed to hard code a link redirecting users to the joomdle view of the course content.
to remove the link go to your moodle directory and then mod/scorm/player.php and comment out lines 166-167

// Print the page header.
if (empty($scorm->popup) || $displaymode == 'popup') {
//$exitlink = html_writer::link($CFG->wwwroot.'/course/view.php?id='.$scorm->course, $strexit, array('title' => $strexit));
//$PAGE->set_button($exitlink);
}

Hope this helps someone else - both issues have been a headache for me for a few months now
Last edit: 10 years 8 months ago by dave. Reason: typos

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Moodle Wrapper with a SCORM package issues
Thanks for sharing your solution, I am sure it can help others.

I will move this topic to "Tips & Tricks", so it is easier for others to locate.

Please Log in or Create an account to join the conversation.