Adaptable: requesting a little advice from a coder to add custom javascript for videojs

Adaptable: requesting a little advice from a coder to add custom javascript for videojs

дэргэд Kevin Price -
Хариу нийтлэлийн тоо: 1

Hi,

I have little (next to no) understanding of adding javascript to the custom modifications section.

I'd like to add the responsive and fill modes to my videojs player as discussed here >> https://docs.videojs.com/tutorial-layout.html

It looks simple enough, but I'm not sure how it is done.

Happy to pay if necessary.

Thanks,

K


Үнэлгээний дундаж: -
Kevin Price-н хариуд

Re: Adaptable: requesting a little advice from a coder to add custom javascript for videojs

дэргэд Gareth J Barnard -
Core developers зураг Particularly helpful Moodlers зураг Plugin developers зураг
Dear Kevin,

After reading the link you posted and testing, all you need to do is add one of 'vjs-fluid, vjs-16-9, or vjs-4-3' to the core 'media_videojs | videocssclass' setting, i.e. Site administration -> Plugins -> Media players -> VideoJS player. So that setting could contain 'video-js vjs-fluid' as an example.

But if you want 'fill' instead of 'fluid' then use the class 'vjs-fill' instead, so 'video-js vjs-fill' instead.

Gareth