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

Uncaught ReferenceError: pluginOptions is not defined #74

Open
yavuzoktay opened this issue Sep 13, 2020 · 1 comment
Open

Uncaught ReferenceError: pluginOptions is not defined #74

yavuzoktay opened this issue Sep 13, 2020 · 1 comment

Comments

@yavuzoktay
Copy link

Hello there,

When I add the following codes to the app.js file, I get the error in the header on the google browser screen.

Where exactly do I post comments and how can I resolve the error. I only have index.html and app.js files. I have completed my other npm install installations.
I read the documentation but did not fully understand it. I give an example. I want to comment on the 5th second.

app.js

var player = videojs('my-video');
var plugin = player.annotationComments(pluginOptions)

index.html
`

  <!-- If you'd like to support IE8 (for Video.js versions prior to v7) -->
  <script src="https://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>
  <script type="module" src="/app.js"></script>
  <script type="module" src="/demo.js"></script>

  </head>

  <body>
   <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" poster="jordan.jpg"
    data-setup="{}">
    <source src="jordan.mp4" type="video/mp4" />
    <source src="MY_VIDEO.webm" type="video/webm" />
    <p class="vjs-no-js">
        To view this video please enable JavaScript, and consider upgrading to a
        web browser that
        <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
    </p>
   </video>
  <script src="/node_modules/video.js/dist/video.min.js"></script>
  <script src="/dist/Youtube.min.js"></script>
  <script src="https://vjs.zencdn.net/7.8.4/video.js"></script>

  <script src="/videojs-annotation-comments.min.js"></script>
`
@jamesconant
Copy link

@jackpope Any helpful thoughts or insights on this one?

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

2 participants