-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.10
-
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.
- duplicates
-
MDL-70535 videojs language doesn't fallback to en
-
- Closed
-