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: volume is not defined. videojs-vimeo #154

Open
NavinAT opened this issue Jan 11, 2021 · 0 comments
Open

Uncaught ReferenceError: volume is not defined. videojs-vimeo #154

NavinAT opened this issue Jan 11, 2021 · 0 comments

Comments

@NavinAT
Copy link

NavinAT commented Jan 11, 2021

I am using latest version of videojs for Vimeo videos- Video.js 7.11.1

YouTube is working fine but for Vimeo getting the below Error.

image
Please suggest a solution.
Here's my code:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/video-js.min.css" rel="stylesheet">
</head>
<body>
  <h2>Vimeo</h2>
        <video
        id="vid1"
        class="video-js vjs-default-skin"
        controls
        autoplay
        width="640" height="264"
        data-setup='{ "techOrder": ["vimeo"], "sources": [{ "type": "video/vimeo", 
        "src": "https://player.vimeo.com/video/359471496"}], "vimeo": { "iv_load_policy": 1 } }'
      >
      </video>

      <h2>YouTube</h2>
      <video
        id="vid1"
        class="video-js vjs-default-skin"
        controls
        autoplay
        width="640" height="264"
        data-setup='{ "techOrder": ["youtube"], "sources": [{ "type": "video/youtube", 
        "src": "https://www.youtube.com/watch?v=wzA54cCX68Q"}], "youtube": { "iv_load_policy": 1 } }'
      >
      </video>
    <script src="script/video.min.js"></script>
    <script src="Vimeo/videojs-vimeo.js"></script>
    <script src="YouTube/Youtube.min.js"></script>
</body>
</html>

Error:
Uncaught ReferenceError: volume is not defined
at Vimeo.setVolume (videojs-vimeo.js:194)
at video.min.js:19
at l. (video.min.js:19)
at l.e.ready (video.min.js:12)
at l.e.techCall_ (video.min.js:19)
at l.e.handleTechReady_ (video.min.js:19)
at Vimeo.e.ready (video.min.js:12)
at l.e.loadTech_ (video.min.js:19)
at l.e.src_ (video.min.js:19)
at video.min.js:19

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