• Resolved vavroom

    (@vavroom)


    I’m looking at using a non youtube or vimeo video player for Course and Lesson videos because I need more customisation and accessibility.

    I use the Able player video player. The following code works when I paste it in a post. It does not work when I paste it in a Course or Lesson “Course Video” box.

    <video id="able-player-1" data-able-player preload="auto">
        <source type="video/mp4" src="path-to-video.mp4">
        </video>

    What do I need to do to ensure I can use my own video player?

    Thank you

    Nic

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @vavroom

    This currently won’t work due to our allowable HTML settings in hte video embed field.

    You can read more about this here: https://github.com/Automattic/sensei/issues/2893#issuecomment-590075762

    and there is also a reference to a code patch which may work for you. If you decide to try it, I’d suggest setting up a staging site before making any code changes and testing there.

    Best,
    Cena
    Cena

    Thread Starter vavroom

    (@vavroom)

    Thank you @cena I appreciate the answer, though I can’t say the answer makes me happy.

    I’ve looked at the GitHub issue linked, and the ones linked from that. It is unclear which patch you are suggesting I try – especially since the PRs are either closed or have discussion that leads to lack of clarity.

    This is a significant concern, one that adds itself to the already long list of accessibility concerns that Sensei LMS faces.

    There is an increasing move towards online education, and the fact that online education is often the ONLY education available, and the fact that education must be accessible for all. Vimeo and YouTube do not allow for custom captions, video description, timed transcripts, or chapters. There are video player solutions that do allow this. Able Player is one such solution. Able player relies on pretty straight forward markup.

    By forcing the sanitizing of tags to limit to a few things Sensei LMS deems acceptable, you are forcing people to be unable to provide accessible videos.

    Hi @vavroom ,

    Well, I definitely don’t disagree with you, and although I can’t speak for the developers, doubt they would either. ??

    > I’ve looked at the GitHub issue linked, and the ones linked from that. It is unclear which patch you are suggesting I try

    Sorry about that! I meant this one: https://github.com/conversionxl/sensei/commit/bbe4deddea3834ea01361f07a234bccaf137e647, although as the commentary mentions, may not be without issues itself. (I linked to the comment originally so you could get a better sense of the issue and potential issues for updating; Donna is the lead Sensei developer.)

    That said, as a workaround, you should be able to embed the Able player in the course / leson content (rather than the video embed box).

    Best,
    Cena

    Thread Starter vavroom

    (@vavroom)

    Thanks again @cena

    I’m already having to seriously hack Sensei as it is to render WCAG 2.1 markup. This is what I deem “passive inaccessibility”. But actively blocking code that would allow using more accessible features… That’s even more sad ??

    I think I’ll end up relying on custom fields for this to give more control as to how content is presented.

    Hi support,

    I agree with @vavroom comments as it is increasingly necessary to offer videos with customized subtitles or translations, as well as to be able to customize how the player should play the lesson videos.

    Currently Sensei LMS truncates part of the custom code for Youtube videos, for example, and this severely limits its use and significantly decreases accessibility, which limits visually impaired students to view the lessons with quality.

    A position from the Sensei LMS development team would be nice.

    Regards!

    Thread Starter vavroom

    (@vavroom)

    I’ve opened an issue on the project’s GitHub.

    I hope the developers will be responsive and that a solution comes quickly.

    https://github.com/Automattic/sensei/issues/4129

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom video for Sensei course video?’ is closed to new replies.