{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template block_deft/janus_room

    This template renders the main venue window page

    Example context (json):
    {
        "autogaincontrol": true,
        "contextid": 2,
        "echocancellation": true,
        "iceservers": "[]",
        "intro": "Hello world",
        "noisesuppression": true,
        "peerid": 109,
        "peers": "[105, 106]",
        "samplerate": 11025,
        "title": "Venue",
        "token": "dladfjlakerlaa3j4lr",
        "throttle": 100,
        "uniqueid": "eworio"
    }
}}
{{#js}}
    require([
        'block_deft/venue_manager',
    ], function(VenueManager) {
        new VenueManager({{ contextid }}, '{{ token }}', {{ peers }}, {{ peerid }}, {{{ iceservers }}}, {{ autogaincontrol }}, {{ echocancellation }}, {{ noisesuppression }}, {{ samplerate }}, 0, '{{ server }}');
});
{{/js}}
