Java Script Error with Video

tmichael9734
Community Member Posts: 144 ♪ Opening Act ♪
I've a video that pops up in a separate window and when done playing the window closes and the user returns to the main training. One of the users complained that the video pauses in the middle and the below error message appears and when she clicks Ok, she gets kicked out of the training.
Is there any explanation for this JS error?
Thank you,

Is there any explanation for this JS error?
Thank you,

Answers
-
-
@carlfink, thank you for your response. I'm sorry, I cannot upload any files or videos, but I'll help with answering your questions. The title is built in L19, and the user tried to run it on IE, Chrome and Edge; however the issue persists in the three of them. I'm not sure which mode she was in when she took the training.
What does the error message mean?
Thank you again. -
@timk thanks a lot. Actually the I followed Joe's steps here https://rockstars.elearningbrothers.com/discussion/450519/js-error-message-for-returning-to-main-window#latest to force the user to go back to the main screen. There was no Javascripts involved.
-
-
@tmichael9734 When you did the workaround suggested in the other thread, did the error message from your original post in this thread go away? Do you have an action running when the video stops playing?
-
Actually the video is running fine at my end and I tested it online in 3 browsers: IE, Chrome and Edge. It also works fine on LMS. The issue only appeared at the client's side when she played it on her browser. She said that she tested it in the same three browsers and every time the video ends, she received the above error and she's kicked out of the training.
-
Taking the error message literally, the error appears to be in custom code that is run by a action "OnShowRunJS".tmichael9734 said:Actually the video is running fine at my end and I tested it online in 3 browsers: IE, Chrome and Edge. It also works fine on LMS. The issue only appeared at the client's side when she played it on her browser. She said that she tested it in the same three browsers and every time the video ends, she received the above error and she's kicked out of the training.
- Do you have any actions inside the video object that are to be run at a certain time?
- Do you have any actions that are supposed to run at the end of the video?
- Is there an "On Show" action on the next page after the one that launched this video or on the pop up page that contains this video?
Also, since the course crashes the same way, at the end of the video, on all three browsers, can the client try another computer on a different network to troubleshoot? - Do you have any actions inside the video object that are to be run at a certain time?
-
Hi John,
Thank you for your response. To answer your questions, here's the "chronological" order of my actions, with screenshots, please note, though, that I followed the recommendations in the link posted above, and it worked perfectly fine with me:
1- In the main page, there's TimeInterval Action (figure1) to run an action group called (ReturnToPageGrp)
2- The ReturnToActnGrp (figure 2) has 3 actions: a- Modify variable; b- hide all, c- show one text block
3- When user clicks Watch Video button, they're taken to the video page
4- In video page, there's an On Show Page Action that has Run JS (figure 3)
5- This Run JS displays the button tip for keyboard users (figure 4) - nothing to do with the video
6- The video has an On Done action (figure 5) to Modify Variable (Return to Page) to True
Hope that explains it, and thank you again for all the help. -
Thank you for the detailed information. In the images, I am looking at the actions on the video. The OnDone action says OnDoneExitClose, not OnDoneModvar as explained in the text. This action could be closing the course, not closing the page or the video, but the course. The ModVar explained in the text is in an OnShowModvar action, not a OnDoneModVar action as explained in the text. When testing, does the course close for you when the video ends?
-
Thank you John, I apologize for the confusion.
The two actions on Done videos are:
1- Modify Variable that modifies the variable (Return to Page) to True;
2- Exit Action to close the pop-up window and return to the main window.
When testing it, it just closes the pop-up window and returns to the main one.
Many thanks again,
-
Hello again. I have more questions to continue to try and reproduce this issue. I've created a support ticket with eLearning Brothers so we can work offline on this issue. Once we determine the cause of this error, we can circle back here and report the findings for the community benefit.
Categories
- 35.8K All Categories
- 108 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products