mirror of https://github.com/interlegis/sapl.git
committed by
João Rodrigues
11 changed files with 83 additions and 1 deletions
@ -0,0 +1,38 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<script src="https://code.jquery.com/jquery-3.4.1.min.js" |
|||
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" |
|||
crossorigin="anonymous"></script> |
|||
<script src='https://meet.jit.si/external_api.js'></script> |
|||
<script language="Javascript"> |
|||
api = undefined; |
|||
$(document).ready(function() { |
|||
const domain = 'meet.jit.si'; |
|||
const options= { |
|||
roomName: 'test30392910', |
|||
width: 700, |
|||
height: 700, |
|||
parentNode: document.querySelector('#meet'), |
|||
interfaceConfigOverwrite: {TOOLBAR_BUTTONS: ['hangup','microphone', 'camera']} |
|||
}; |
|||
api = new JitsiMeetExternalAPI(domain, options); |
|||
api.executeCommand('displayName', 'Vereador Teste'); //TODO: remover |
|||
// api.executeCommand('password', '12345'); |
|||
api.executeCommand('toggleTileView'); |
|||
//api.executeCommand('toggleChat'); |
|||
api.executeCommand('subject', 'Sessão Plenária 18o. de 2020'); |
|||
|
|||
api.on('readyToClose', () => { |
|||
console.log('opaaaaa'); |
|||
}); |
|||
}); |
|||
</script> |
|||
<title>Videoconferência</title> |
|||
</head> |
|||
<body> |
|||
<h2>Vídeoconferência</h2> |
|||
<div id="meet"></div> |
|||
</body> |
|||
</html> |
|||
@ -0,0 +1 @@ |
|||
default_app_config = 'sapl.videoconf.apps.AppConfig' |
|||
@ -0,0 +1,8 @@ |
|||
from django import apps |
|||
from django.utils.translation import ugettext_lazy as _ |
|||
|
|||
|
|||
class AppConfig(apps.AppConfig): |
|||
name = 'sapl.videoconf' |
|||
label = 'videoconf' |
|||
verbose_name = _('Video-conferência') |
|||
@ -0,0 +1,3 @@ |
|||
from django.db import models |
|||
|
|||
# Create your models here. |
|||
@ -0,0 +1,3 @@ |
|||
from django.test import TestCase |
|||
|
|||
# Create your tests here. |
|||
@ -0,0 +1,10 @@ |
|||
|
|||
from .apps import AppConfig |
|||
from .views import VideoConferenciaView |
|||
from django.conf.urls import url |
|||
|
|||
app_name = AppConfig.name |
|||
|
|||
urlpatterns = [ |
|||
url(r'^videoconf/$', VideoConferenciaView.as_view(), name='videoconferencia'), |
|||
] |
|||
@ -0,0 +1,14 @@ |
|||
from django.shortcuts import render |
|||
from django.views.generic import TemplateView |
|||
from django.contrib.auth.mixins import PermissionRequiredMixin |
|||
|
|||
# Create your views here. |
|||
|
|||
|
|||
class VideoConferenciaView(PermissionRequiredMixin, TemplateView): |
|||
template_name = "videoconf/videoconferencia.html" |
|||
permission_required = ('sessao.add_sessao', ) |
|||
|
|||
def get_context_data(self, **kwargs): |
|||
context = super().get_context_data(**kwargs) |
|||
return context |
|||
Loading…
Reference in new issue