page.list.screen.video.php 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. global $myUser;
  3. User::check_access('screenshare','read');
  4. require_once(__DIR__.SLASH.'ScreenVideo.class.php');
  5. ?>
  6. <h3>Capture d'écran</h3>
  7. <div class="row screenshare">
  8. <!-- search results -->
  9. <div class="col-xl-6 screenshare-preview-block">
  10. <video id="screenshare-preview" poster="plugin/screenshare/img/poster.jpg" controls class="screenshare-preview" autoplay></video>
  11. <?php if($myUser->can('screenshare', 'edit')) : ?>
  12. <div class="screenshare-button-bar ">
  13. <!--<div onclick="$.message('warning','désolé, pas encore implémenté...')" class="btn"><i class="fas fa-crop-alt text-muted"></i></div>-->
  14. <div onclick="screenshare_screen_mouse_toggle()" title="Dés/Activer l'affichage souris" class="btn mouse-button" data-mode="active"><i class="fas fa-mouse-pointer text-muted"></i></div>
  15. <div onclick="screenshare_screen_video_record();" class="btn record-button"><i class="text-danger fas fa-circle"></i></div>
  16. <div onclick="screenshare_screen_sound_toggle()" title="Dés/Activer le son" class="btn sound-button" data-mode="inactive"><i class="fas fa-volume-up text-muted"></i></div>
  17. </div>
  18. <?php endif; ?>
  19. </div>
  20. <div class="col-xl-6">
  21. <select id="filters" data-type="filter" data-label="Recherche" data-function="screenshare_screen_video_search">
  22. <option value="label" data-filter-type="text">Libellé</option>
  23. </select>
  24. <h4 class="results-count"><span></span> Capture(s)</h4>
  25. <ul id="screen-videos" class="screen-videos" data-entity-search="screenshare_screen_video_search">
  26. <li data-id="{{id}}" class="hidden">
  27. <span class="text-muted"><i class="fas fa-hashtag"></i>{{id}} </span>
  28. <input type="text" class="mr-2 mb-2 label" onblur="screenshare_screen_video_save(this)" value="{{label}}">
  29. <div class="btn-group btn-group-sm right text-muted" role="group">
  30. <a class="mx-2 pointer" onclick="copy_string('{{url}}');$.message('info','Lien copié')" title="lien"><i class="fas fa-link"></i></a>
  31. <a class="mx-2 pointer text-muted" href="action.php?action=screenshare_screen_video_preview&download&slug={{slug}}" title="Télécharger"><i class="fas fa-file-download"></i></a>
  32. <div class="mx-2 pointer" title="Prévisualiser" onclick="screenshare_screen_video_preview(this);"><i class="far fa-play-circle"></i></div>
  33. <div class="mx-2 pointer" title="Supprimer" onclick="screenshare_screen_video_delete(this);"><i class="fas fa-trash"></i></div>
  34. </div>
  35. <br>
  36. <small class="text-muted">
  37. Expire le <input type="text" class="expireDate text-muted" onblur="screenshare_screen_video_save(this)" data-type="date" value="{{expireDate}}">
  38. à <input type="text" class="expireHour text-muted" onblur="screenshare_screen_video_save(this)" data-type="hour" value="{{expireHour}}">
  39. </small>
  40. </li>
  41. </ul>
  42. <!-- Pagination (data-range définit le nombre de pages max affichées avant et après la page courante) -->
  43. <ul class="pagination justify-content-center" data-range="5">
  44. <li class="page-item hidden" data-value="{{value}}" title="Voir la page {{label}}" onclick="$(this).parent().find('li').removeClass('active');$(this).addClass('active');screenshare_screen_video_search();">
  45. <span class="page-link">{{label}}</span>
  46. </li>
  47. </ul>
  48. </div>
  49. </div>
  50. <div id="screenshare-progress" class="screenshare-progress hidden">
  51. <div class="progress">
  52. <div class="progress-bar bg-dark" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
  53. </div>
  54. <i class="text-danger fas fa-circle"></i> Enregistrement de la vidéo en cours <span></span> ...
  55. </div>