TestCamera.jsp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <%-- 改。Lin
  5. <@script type="text/javascript" src="/${sessionScope['XMMC']}/js/yx/yx_zjz.js"></script> --%>
  6. <js.ss file="/ss/yx/yx_zjz.js"/>
  7. <%-- 改,去掉 /wd/js/ueditor/dialogs/wdimage/upload.js,改用 /wd/js/upload.js。Lin
  8. <@script type="text/javascript" src="/wd/js/ueditor/dialogs/wdimage/upload.js"></script>
  9. --%><js.ss file="/ss/upload.js"/>
  10. <style type="text/css">
  11. #sfzImg{
  12. margin: 0 auto;
  13. width: 381px;
  14. height: 491.6px !important;
  15. border:1px solid #999;
  16. }
  17. /* #video{width:100% !important;height:100% !important}*/
  18. #video{width:800px!important;height:719px!important}
  19. </style>
  20. </head>
  21. <body>
  22. <div class="content-div" ssFith="true">
  23. <label style="display:none;" for="videoSource">视频来源: </label>
  24. <select style="display:none;" id="videoSource"></select>
  25. <div style="width:100%;display: flex;height: 413px;">
  26. <div id="sfzImg" class="photo">
  27. <input type="file" style="display:none;" id="file"/>
  28. <video autoplay muted playsinline style="display:none" id="video"></video>
  29. <canvas id="canvas" style="display:none"></canvas>
  30. </div>
  31. </div>
  32. <div style="text-align: center; margin-top: 88px;margin-bottom: 46px;">
  33. <input class="content-button" type="button" value="拍照" id="btn"/>
  34. </div>
  35. </div>
  36. </body>
  37. </html>