Browse Source

解决purejs 报错

zhangjizhe 4 years ago
parent
commit
005cc4897b
3 changed files with 48 additions and 3 deletions
  1. 2 2
      examples/pureJS/index.html
  2. 1 1
      examples/pureJS/js/index.js
  3. 45 0
      examples/pureJS/lib/index.js

+ 2 - 2
examples/pureJS/index.html

@@ -30,8 +30,8 @@
         API 文档请看这里
       </a>
     </div>
-    <script type="text/javascript" src="js/can-autoplay.min.js"></script>
-    <script type="text/javascript" src="https://ucloud.github.io/urtc-sdk-web/lib/index.js"></script>
+    <script type="text/javascript" src="https://github.com/video-dev/can-autoplay/blob/master/lib/index.js"></script>
+    <script type="text/javascript" src="./lib/index.js"></script>
     <script type="text/javascript" src="js/config.js"></script>
     <script type="text/javascript" src="js/index.js"></script>
   </body>

+ 1 - 1
examples/pureJS/js/index.js

@@ -17,7 +17,7 @@ window.onload = function () {
     return;
   }
 
-  console.log('UCloudRTC sdk version: ', UCloudRTC.version);
+  console.log('UCloudRTC sdk version:',UCloudRTC);
 
   const Player = function(client, stream, selectFunc) {
     this.client = client;

File diff suppressed because it is too large
+ 45 - 0
examples/pureJS/lib/index.js