Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript issues in Console #11

Open
moritz-ngo opened this issue Aug 12, 2024 · 0 comments
Open

JavaScript issues in Console #11

moritz-ngo opened this issue Aug 12, 2024 · 0 comments

Comments

@moritz-ngo
Copy link
Contributor

When including the provided TypoScript setup/constants, I get some JavaScript issues in my console:

[ERROR] Uncaught ReferenceError: videojs is not defined
    at videos-mit-untertitel.html:3023:22

and

[WARNING] VIDEOJS: WARN: videojs.plugin() is deprecated; use videojs.registerPlugin() instead

The rendered HTML looks smth like this:

<video width="1180" controls oncontextmenu="return false;" class="video-js vjs-big-play-centered vjs-16-9" id="video2505" data-setup="{}"><source src="/fileadmin/user_upload/movie.mp4" type="video/mp4"><track label="Deutsch" kind="subtitles" srclang="de" src="/fileadmin/user_upload/track.vtt"></video>
<script>
    var player2505 = videojs('video2505');
    player2505.markers();
    player2505.markersUi();
</script>

The first JavaScript error occurs, because the JavaScript was moved to the footer, due to config.moveJsFromHeaderToFooter = 1.

I assume that the second JavaScript warning is because of an old VideoJS version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant