Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70542

VideoJS player fails on other languages than english

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.10
    • Text editor Atto
    • MOODLE_310_STABLE

      After upgrading to Workplace 3.10 the VideoJS player fails showing the added video:

      The Debug error is: 
      JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
      Fil: https://xxxxxxxxx.no/lib/requirejs.php/1608737671/core/first.js
      Linje: 292
      Stack trace:
      ln: 3642https://xxxxxxx.no/lib/requirejs.php/1608737671u/<
      ln: 29453https://xxxxxx.no/lib/javascript.php/160873767e
      ln: 29755https://xxxxxx.no/lib/javascript.php/160873767l/</t<

      Our developer reports:

      The problem is coming from this service media_videojs_get_language.  From what I found this service collect and cache the translations for the video player. When we switch to Norwegian the service is passing empty lang param which break the js after that. The service is working fine when I switch to English.

      ... and next:

      The problem is that the language service is called with empty lang param. Somewhere in the js the lang is not setup. 

       

      Temporary workaround:

      We turned off the VideoJS player and activated the Vimeo player instead. Then it worked without errors.

            Unassigned Unassigned
            amj1000 Alf Martin Johnsen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.