Ver código fonte

新增hp解码

wuyongxiang 4 anos atrás
pai
commit
f107aae8fc
3 arquivos alterados com 3720 adições e 5 exclusões
  1. 45 0
      highDemo/index.html
  2. 3670 0
      highDemo/wfs.js
  3. 5 5
      screenH5/homeNew.html

+ 45 - 0
highDemo/index.html

@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+	
+	<title>h.264 To fmp4</title>  
+ 
+</head>
+<body>
+    <h2>h.264 To fmp4</h2>
+
+ 
+   <script type="text/javascript" src="wfs.js" ></script>  
+  
+   <div class="wfsjs">
+   <video id="video1"  width="640" height="480" controls></video> 
+   <div class="ratio"></div>
+   </div>
+
+   <div class="wfsjs2">
+   <video id="video2"  width="640" height="480" controls></video>
+   <div class="ratio2"></div>
+   </div>
+ 
+    <script>
+ 
+	window.onload = function () {
+        if (Wfs.isSupported()) {
+        	
+            var video1 = document.getElementById("video1"),
+            wfs = new Wfs();    
+            wfs.attachMedia(video1,'ch1');
+         
+            var video2 = document.getElementById("video2"),
+            wfs2 = new Wfs();
+            wfs2.attachMedia(video2,'ch2'); 
+
+  
+        }
+    };
+
+ 
+    </script>
+	
+</body>
+</html>

Diferenças do arquivo suprimidas por serem muito extensas
+ 3670 - 0
highDemo/wfs.js


+ 5 - 5
screenH5/homeNew.html

@@ -418,7 +418,7 @@
 						var tmiss = ''
 						//计算出相差天数
 						var days = Math.floor(date3 / (24 * 3600 * 1000))
-                        console.log(days + "天");
+                        // console.log(days + "天");
 						//计算出小时数
 
 						var leave1 = date3 % (24 * 3600 * 1000) //计算天数后剩余的毫秒数
@@ -431,18 +431,18 @@
 						var seconds = Math.round(leave3 / 1000)
 						var times = ""
 						if (Number(days) == 0) {
-							console.log(hours + "小时" + minutes + "分")
+							// console.log(hours + "小时" + minutes + "分")
 							tmiss = Number(hours) + "小时" + Number(minutes) + "分"
 						} else {
 							if (Number(hours) == 0 && Number(minutes) == 0) {
-								console.log(days + "天")
+								// console.log(days + "天")
 								tmiss = Number(days) + "天"
 							} else {
-								console.log(days + "天" + hours + "小时 ")
+								// console.log(days + "天" + hours + "小时 ")
 								tmiss = Number(days) + "天" + Number(hours) + "小时 "
 							}
 						}
-						console.log("tmiss>>>>>>", tmiss);
+						// console.log("tmiss>>>>>>", tmiss);
 						return tmiss
 					},
 					swiperNext(data) {