• Resolved f3rdal

    (@f3rdal)


    I use the WordPress player with subtitles (.vtt). If I insert 6 videos (from our video streaming server) on one page, the first video will be displayed with the WordPress player but the remaining videos will be displayed with the JS player? Does anyone here know why this is? I found nothing in the instructions.The error drives me crazy.

    The reason why I prefer the WordPress-Player to the JS-Player is that the JS-Player does not show subtitles with Opera and Safari. Unfortunately the browser crashes!

    This is shown in the console when I select the WordPress player in the plugin.

    kgvid_video_embed.js?ver=4.6.25:552 Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
    at Object.<anonymous> (kgvid_video_embed.js?ver=4.6.25:552)
    at Function.each (jquery.js?ver=1.12.4-wp:2)
    at kgvid_setup_video (kgvid_video_embed.js?ver=4.6.25:551)
    at kgvid_mejs_success (kgvid_video_embed.js?ver=4.6.25:49)
    at r.value (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
    at r.MediaElementPlayer._meReady (mediaelement-migrate.min.js?ver=5.3.2:1)
    at Object.success (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
    at new e (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
    at r.value (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
    at r.MediaElementPlayer.init (mediaelement-migrate.min.js?ver=5.3.2:1)

    • This topic was modified 4 years, 8 months ago by f3rdal.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Kyle Gilman

    (@kylegilman)

    Can you post a link to a page on your site that demonstrates this problem?

    Thread Starter f3rdal

    (@f3rdal)

    Thanks for the answer. The problem is on this page: https://ekoo.fernuni-hagen.de/materialien-zum-arbeiten-mit-connect-moodle-etc/

    • This reply was modified 4 years, 8 months ago by f3rdal.
    Thread Starter f3rdal

    (@f3rdal)

    Can you solve the problem? Do you have an idea @kylegilman ?

    Plugin Author Kyle Gilman

    (@kylegilman)

    It looks like you’re trying to load subtitles across domains. There’s an error Unsafe attempt to load URL https://www.fernuni-hagen.de/vs/ekoo/medida-grundlagen/medida-konzeption.vtt from frame with URL https://ekoo.fernuni-hagen.de/materialien-zum-arbeiten-mit-connect-moodle-etc/. Domains, protocols and ports must match. That appears to be making the video player crash when it loads and you’re seeing the browser’s built-in unstyled video player for the rest of the videos.

    Thread Starter f3rdal

    (@f3rdal)

    Thank you very much for your answer. We have always used the JS-Player so far. But it also caused problems and so we switched to the WordPress-Player. With a video on one page it seems to work too. But if you use more than one video on a page you will get the “crash”.
    We have been using your plugin for several years and have always provided the content in this way and never had any problems. The videos and the subtitles are always on a different server. Loading had always worked so far. Does that mean that the subtitles and the video have to be on the same server as the blog?

    Thread Starter f3rdal

    (@f3rdal)

    Excuse me if I ask again. If I now load the subtitles into the media library of WordPress and link them with the same URL and stream the video from another server, it won’t work either. This means that the video and the subtitles must be on the same server. If this is the case (which I just can’t believe) then your plugin would be completely useless for this purpose. I can’t imagine that this can’t work.

    Thread Starter f3rdal

    (@f3rdal)

    Again, excuse me if I write something about this again. I have now copied two subtitles into the media library of WordPress and then integrated them into the ShortCode of your plugin. The error you described doesn’t appear anymore – but the video windows are still different. Can you tell me something about this? According to your theory @kylegilman, at least two video windows should be displayed normally again. But they do not. But what I still see is this JavaScript error:

    kgvid_video_embed.js?ver=4.6.25:552 Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
    at Object.<anonymous> (kgvid_video_embed.js?ver=4.6.25:552)
    at Function.each (jquery.js?ver=1.12.4-wp:2)
    at kgvid_setup_video (kgvid_video_embed.js?ver=4.6.25:551)
    at kgvid_mejs_success (kgvid_video_embed.js?ver=4.6.25:49)
    at r.value (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
    at r.MediaElementPlayer._meReady (mediaelement-migrate.min.js?ver=5.3.2:1)
    at Object.success (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
    at new e (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
    at r.value (mediaelement-and-player.min.js?ver=4.2.13-9993131:12)
    at r.MediaElementPlayer.init (mediaelement-migrate.min.js?ver=5.3.2:1)

    • This reply was modified 4 years, 8 months ago by f3rdal.
    Plugin Author Kyle Gilman

    (@kylegilman)

    I’m sorry it looks like a bug in the plugin’s JavaScript when there’s no default text track. I’m a little overwhelmed right now as I’m suddenly homeschooling a 4-year-old and still trying to work on my day job and I haven’t worked on the plugin in months, so I don’t know how quickly I can release a fix. I’ve made a quick fix to the plugin file found at js/kgvid_video_embed.js https://drive.google.com/file/d/1sFMOa2OdZI_vy7LqL5ERHhsDmsbodTol/view?usp=sharing

    If you replace the file on your server and clear your browser’s cache I think it will fix the problem.

    Thread Starter f3rdal

    (@f3rdal)

    I’m very sorry to hear that. I had no idea they were still working on the plugin under the circumstances. Thank you so much for the fix they offered. I will replace the file and report back to you when the bug is fixed. Thank you very much. I wish you all the best. Stay well.

    • This reply was modified 4 years, 8 months ago by f3rdal.
    Thread Starter f3rdal

    (@f3rdal)

    Thanks again. Your hotfix solved the problem. The videos are now loaded with the WordPress player and the player does not crash anymore.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Why is the WordPress and JS-Player on one page’ is closed to new replies.