Forums | Mahara Community

Support /
Video.js doesn't load correctly by "Files, Pictures and Videos / Embedded Media"


Stefanie Berger's profile picture
Posts: 24

12 January 2019, 1:57 AM

Hello at all,

in my Mahara there is a general problem with embedding videos. Videos uploaded to Mahara and to be embedded are not displayed correctly (too large) and parts of the video.js player are visible.
The problem can be seen with different video formats and across all types of browsers.

The videos are not playable.

It seems that the video.js player is not loading correctly.
Looks like it's the same here:

Bildschirmfoto 2019-01-11 um 13.27.34.png

 

or here:

https://mahara.hu-berlin.de/view/view.php?t=koqaQtOxUEK4VALm81Wj

Does anyone have an explanation or even a fix?

Best greetings and many thanks

Stefanie

Cecilia Vela's profile picture
Posts: 66

14 January 2019, 10:33 AM

Hi Stefanie,

It looks like the css styles for the videojs library are missing from your Mahara site, the system administrator has to add them to be able to display the embedded videos correctly.

- One way to fix it would be:

make sure the following file is present in this folder
htdocs/theme/raw/sass/plugin/blocktype/_internalmedia.scss

and the line
@import "../plugin/blocktype/internalmedia";
is present in file
htdocs/theme/raw/sass/utilities/_index.scss

after that just run the command 'make css' to rebuild the styles for the site

- If the styles were not created by compiling but instead the Mahara system was installed by downloading one of the tarballs in https://launchpad.net/mahara, then:

  1.  download the tarball again for the Mahara version that you have installed.
  2. replace the htdocs/theme/default/style/style.css in your code for the one in the compress Mahara file (I guess 'default' theme is the one you are using for what I see in the screenshot, if it's not, change to the corresponding theme directory for that theme)

I hope this helps you solve the issue.

Cecilia

Stefanie Berger's profile picture
Posts: 24

15 January 2019, 12:13 AM

Dear Cecilla,

your tip was very useful - there was a version conflict in the compilation tools (dependencies).

You pushed us into the right corner to find it :-)

Thank you very much!
Stefanie

3 results