| 1 | 
           efrain | 
           1 | 
           {{!
  | 
        
        
            | 
            | 
           2 | 
               This file is part of Moodle - http://moodle.org/
  | 
        
        
            | 
            | 
           3 | 
              | 
        
        
            | 
            | 
           4 | 
               Moodle is free software: you can redistribute it and/or modify
  | 
        
        
            | 
            | 
           5 | 
               it under the terms of the GNU General Public License as published by
  | 
        
        
            | 
            | 
           6 | 
               the Free Software Foundation, either version 3 of the License, or
  | 
        
        
            | 
            | 
           7 | 
               (at your option) any later version.
  | 
        
        
            | 
            | 
           8 | 
              | 
        
        
            | 
            | 
           9 | 
               Moodle is distributed in the hope that it will be useful,
  | 
        
        
            | 
            | 
           10 | 
               but WITHOUT ANY WARRANTY; without even the implied warranty of
  | 
        
        
            | 
            | 
           11 | 
               MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  | 
        
        
            | 
            | 
           12 | 
               GNU General Public License for more details.
  | 
        
        
            | 
            | 
           13 | 
              | 
        
        
            | 
            | 
           14 | 
               You should have received a copy of the GNU General Public License
  | 
        
        
            | 
            | 
           15 | 
               along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  | 
        
        
            | 
            | 
           16 | 
           }}
  | 
        
        
            | 
            | 
           17 | 
           {{!
  | 
        
        
            | 
            | 
           18 | 
               @template tiny_recordrtc/video_recorder
  | 
        
        
            | 
            | 
           19 | 
              | 
        
        
            | 
            | 
           20 | 
               Audio recorder template.
  | 
        
        
            | 
            | 
           21 | 
              | 
        
        
            | 
            | 
           22 | 
               Example context (json):
  | 
        
        
            | 
            | 
           23 | 
               {
  | 
        
        
           | 1441 | 
           ariadna | 
           24 | 
                   "isallowedpausing": true
  | 
        
        
           | 1 | 
           efrain | 
           25 | 
               }
  | 
        
        
            | 
            | 
           26 | 
           }}
  | 
        
        
            | 
            | 
           27 | 
           {{!
  | 
        
        
            | 
            | 
           28 | 
               Note:
  | 
        
        
            | 
            | 
           29 | 
               The content of this template should ideally be shared with the video recorder by using a block template.
  | 
        
        
            | 
            | 
           30 | 
               Unfortunately it is not possible to have nested block templates due to MDL-51145.
  | 
        
        
            | 
            | 
           31 | 
               Once this issue is resolved, this template should be refactored to use a block template.
  | 
        
        
            | 
            | 
           32 | 
           }}
  | 
        
        
            | 
            | 
           33 | 
           {{< core/modal }}
  | 
        
        
            | 
            | 
           34 | 
               {{$title}}{{#str}} videotitle, tiny_recordrtc {{/str}}{{/title}}
  | 
        
        
            | 
            | 
           35 | 
               {{$body}}
  | 
        
        
            | 
            | 
           36 | 
               {{> core/local/toast/wrapper }}
  | 
        
        
            | 
            | 
           37 | 
               <div class="tiny_recordrtc container-fluid">
  | 
        
        
            | 
            | 
           38 | 
                   <div  data-purpose="security-warning" class="row hide">
  | 
        
        
            | 
            | 
           39 | 
                       <div class="col-12">
  | 
        
        
            | 
            | 
           40 | 
                           <div id="alert-danger" class="alert alert-danger">
  | 
        
        
            | 
            | 
           41 | 
                               <strong>
  | 
        
        
           | 11 | 
           efrain | 
           42 | 
                                   {{#str}} insecurealert_title, tiny_recordrtc {{/str}}
  | 
        
        
           | 1 | 
           efrain | 
           43 | 
                               </strong>
  | 
        
        
            | 
            | 
           44 | 
                               {{#str}} insecurealert, tiny_recordrtc {{/str}}
  | 
        
        
            | 
            | 
           45 | 
                           </div>
  | 
        
        
            | 
            | 
           46 | 
                       </div>
  | 
        
        
            | 
            | 
           47 | 
                   </div>
  | 
        
        
            | 
            | 
           48 | 
                   <div data-purpose="player-container" class="row">
  | 
        
        
            | 
            | 
           49 | 
                       <div class="col-1"></div>
  | 
        
        
            | 
            | 
           50 | 
                       <div class="col-10">
  | 
        
        
            | 
            | 
           51 | 
                           <video></video>
  | 
        
        
            | 
            | 
           52 | 
                       </div>
  | 
        
        
            | 
            | 
           53 | 
                       <div class="col-1"></div>
  | 
        
        
            | 
            | 
           54 | 
                   </div>
  | 
        
        
            | 
            | 
           55 | 
                   <div data-purpose="start-stop-container" class="row">
  | 
        
        
            | 
            | 
           56 | 
                       <div class="col-1"></div>
  | 
        
        
           | 1441 | 
           ariadna | 
           57 | 
                       <div class="col-10 d-inline-flex w-100">
  | 
        
        
            | 
            | 
           58 | 
                           <button class="btn btn-lg btn-outline-danger w-100" data-action="startstop">
  | 
        
        
           | 1 | 
           efrain | 
           59 | 
                               {{#str}} startrecording, tiny_recordrtc {{/str}}
  | 
        
        
            | 
            | 
           60 | 
                           </button>
  | 
        
        
           | 1441 | 
           ariadna | 
           61 | 
                           {{#isallowedpausing}}
  | 
        
        
            | 
            | 
           62 | 
                               <button class="btn btn-lg btn-outline-primary ms-3 hidden" data-action="pauseresume">
  | 
        
        
            | 
            | 
           63 | 
                                   {{#str}} pause, tiny_recordrtc {{/str}}
  | 
        
        
            | 
            | 
           64 | 
                               </button>
  | 
        
        
            | 
            | 
           65 | 
                           {{/isallowedpausing}}
  | 
        
        
           | 1 | 
           efrain | 
           66 | 
                       </div>
  | 
        
        
            | 
            | 
           67 | 
                       <div class="col-1"></div>
  | 
        
        
            | 
            | 
           68 | 
                   </div>
  | 
        
        
            | 
            | 
           69 | 
                   <div data-purpose="upload-container" class="row hide">
  | 
        
        
            | 
            | 
           70 | 
                       <div class="col-1"></div>
  | 
        
        
            | 
            | 
           71 | 
                       <div class="col-10">
  | 
        
        
           | 1441 | 
           ariadna | 
           72 | 
                           <button class="btn btn-lg btn-primary w-100" data-action="upload">
  | 
        
        
           | 1 | 
           efrain | 
           73 | 
                               {{#str}} attachrecording, tiny_recordrtc {{/str}}
  | 
        
        
            | 
            | 
           74 | 
                           </button>
  | 
        
        
            | 
            | 
           75 | 
                       </div>
  | 
        
        
            | 
            | 
           76 | 
                       <div class="col-3"></div>
  | 
        
        
            | 
            | 
           77 | 
                   </div>
  | 
        
        
            | 
            | 
           78 | 
               </div>
  | 
        
        
            | 
            | 
           79 | 
               {{/body}}
  | 
        
        
            | 
            | 
           80 | 
              | 
        
        
            | 
            | 
           81 | 
               {{$footer}}
  | 
        
        
            | 
            | 
           82 | 
                   <button type="button" class="btn btn-secondary" data-action="cancel">{{#str}} cancel {{/str}}</button>
  | 
        
        
            | 
            | 
           83 | 
               {{/footer}}
  | 
        
        
            | 
            | 
           84 | 
           {{/ core/modal }}
  |