yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
492 stars 160 forks source link

videojs-panorama.v5.min.js with JQuery and JQuery Mobile #21

Closed alvaromlg closed 7 years ago

alvaromlg commented 7 years ago

Hello,

Is there any limitation using this plugin with Jquery?

I have the following javascripts:

  <!-- VIDEO JS -->
  <script src="http://vjs.zencdn.net/5.11.0/video.js" type="text/javascript"></script>

  <!-- If you'd like to support IE8 -->
  <script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js" type="text/javascript"></script>

  <!-- JQUERY -->
  <script src="http://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
  <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js" type="text/javascript"></script>
  <script src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r71/three.min.js" type="text/javascript"></script>
  <script src="js/videojs-panorama.v5.min.js" type="text/javascript"></script>

  <!-- CSS -->
  <link href="http://vjs.zencdn.net/5.11.0/video-js.css" rel="stylesheet">
  <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
  <link rel="stylesheet" href="css/videojs-panorama.min.css">

But I am receiving this error:

videojs-panorama.v5.min.js:1 Uncaught TypeError: s.scale is not a function

As long as I remove both Jquery imports the code works fine so I was wondering if I cant use Jquery with this plugin.

alvaromlg commented 7 years ago

Can be closed, with the latest revision r79 it's working fine.

yanwsh commented 7 years ago

Cool, that's because you are using old three js library, and scale function is not supported on this version, please make sure your three js library version is greater than r76.