Explore the community Forums Lectora Lectora Questions & Answers Is there a way to publish titles without MediaElementJS?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #430497 Score: 0
    Profile photo of William R
    William R
    Member
    beginner
    intermediate
    friend finder
    curious george
    wise owl
    2 pts
    @wr3030

    Hello,

    Is there a way to publish titles without the MediaElement.JS (mejs) library? In short, my issue is that this library conflicts with another video player library that I must use which is a dependency for other code to run.

    Thanks

     

    #430505 Score: 0
    Profile photo of William R
    William R
    Member
    beginner
    intermediate
    friend finder
    curious george
    wise owl
    2 pts
    @wr3030

    Update/current solution:

    For now, I’m going with just loading my library in addition to MEJS being there and removing the MEJS instance on the page. The downside here is that the page load time is increased, but we can live with that for now.

    This is achieved by digging into an object stored in a global variable called mejs which gives developers access to all the instances of media element-powered players on the page. You can call a remove function to return to a non-mejs state of your video element. Below is a sample of code used to remove the first instance of mejs on the page.

    mejs.players.mep_0.remove();

    After this, I was able to successfully run my code and apply the video player framework that I need to use.

    In case anyone’s interested, this is so that I could apply the videojs library and use the xAPI Video Profile which is dependent on videojs. It could work with MEJS, but the xAPI Video Profile reference implementation uses videoJS and it would require much time to rewrite their library to work with another video library. Maybe one day.

    • This reply was modified 2 months, 3 weeks ago by Profile photo of William R William R.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.