webcam.tpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="row">
  2. <div class="col-sm-6 text-center">
  3. <h3>{{ 'LocalInputImage'|get_lang }}</h3>
  4. <div class="webcamclip_bg center-block">
  5. <div id="chamilo-camera" class="embed-responsive-item"></div>
  6. </div>
  7. <form class="text-center">
  8. <br/>
  9. <button id="btnCapture" class="btn btn-danger">
  10. <span class="fa fa-camera" aria-hidden="true"></span>
  11. {{ 'Snapshot'|get_lang }}
  12. </button>
  13. <button id="btnClean" class="btn btn-success">
  14. <span class="fa fa-refresh" aria-hidden="true"></span>
  15. {{ 'Clean'|get_lang }}
  16. </button>
  17. <button id="btnSave" class="btn btn-primary">
  18. <span class="fa fa-save" aria-hidden="true"></span>
  19. {{ 'Save'|get_lang }}
  20. </button>
  21. &nbsp;&nbsp;||&nbsp;&nbsp;
  22. <button id="btnAuto" class="btn btn-default">
  23. {{ 'Auto'|get_lang }}
  24. </button>
  25. <button id="btnStop" class="btn btn-default">
  26. {{ 'Stop'|get_lang }}
  27. </button>
  28. </form>
  29. </div>
  30. <div class="col-sm-6">
  31. <div id="upload_results" class="center-block" style="background-color:#ffffff;"></div>
  32. </div>
  33. </div>
  34. <script>
  35. RecordWebcam.init({
  36. urlReceiver: '{{ _p.web_main }}document/webcam_receiver.php?webcamname='
  37. + escape('{{ filename }}') + '&webcamdir={{ webcam_dir }}&webcamuserid={{ user_id }}'
  38. });
  39. </script>