|
@@ -0,0 +1,100 @@
|
|
1
|
+<%inherit file="local:templates.master_authenticated_left_treeview_right_toolbar"/>
|
|
2
|
+<%namespace name="TIM" file="tracim.templates.pod"/>
|
|
3
|
+<%namespace name="ROW" file="tracim.templates.widgets.row"/>
|
|
4
|
+<%namespace name="TABLE_ROW" file="tracim.templates.widgets.table_row"/>
|
|
5
|
+<%namespace name="LEFT_MENU" file="tracim.templates.widgets.left_menu"/>
|
|
6
|
+<%namespace name="P" file="tracim.templates.widgets.paragraph"/>
|
|
7
|
+<%namespace name="TOOLBAR" file="tracim.templates.user_toolbars"/>
|
|
8
|
+
|
|
9
|
+<%def name="title()">
|
|
10
|
+ ${_('VideoConf')}
|
|
11
|
+</%def>
|
|
12
|
+
|
|
13
|
+<%def name="TITLE_ROW()">
|
|
14
|
+ ##<div class="content__title">
|
|
15
|
+ ## ${ROW.TITLE_ROW(_('My Dashboard'), 'fa-home', 'content__title__subtitle-home-hidden-xs', 't-user-color', _('Welcome to your home, {username}.').format(username=fake_api.current_user.name))}
|
|
16
|
+ ##</div>
|
|
17
|
+</%def>
|
|
18
|
+
|
|
19
|
+<%def name="SIDEBAR_RIGHT_CONTENT()">
|
|
20
|
+ ## ${TOOLBAR.USER_ME(fake_api.current_user)}
|
|
21
|
+</%def>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+<%def name="SIDEBAR_LEFT_CONTENT()">
|
|
25
|
+ ## This is the default left sidebar implementation
|
|
26
|
+ ##${LEFT_MENU.TREEVIEW('sidebar-left-menu', '__')}
|
|
27
|
+</%def>
|
|
28
|
+
|
|
29
|
+<%def name="REQUIRED_DIALOGS()">
|
|
30
|
+ ${TIM.MODAL_DIALOG('user-edit-modal-dialog')}
|
|
31
|
+ ${TIM.MODAL_DIALOG('user-edit-password-modal-dialog')}
|
|
32
|
+</%def>
|
|
33
|
+
|
|
34
|
+<div class="content__home">
|
|
35
|
+ <div id="jitsi">
|
|
36
|
+ </div>
|
|
37
|
+ // This example use jitsi-external API. Using lib-jitsi-meet is also a possibility.
|
|
38
|
+ // It support alls jitsi-meet features.
|
|
39
|
+ /* About support for "private (1-to-1) text message into room", check this :
|
|
40
|
+ https://github.com/jitsi/lib-jitsi-meet/pull/616
|
|
41
|
+ */
|
|
42
|
+ <script src="https://prosody/libs/external_api.min.js"></script>
|
|
43
|
+ <script>
|
|
44
|
+ var domain = "prosody";
|
|
45
|
+ var options = {
|
|
46
|
+ // jitsi-meet support now(10-2017) only one way to auto-auth, token,
|
|
47
|
+ // which is anonymous BOSH auth with specific url (with token value in params of the url).
|
|
48
|
+ jwt:"INSERTTOKENHERE",
|
|
49
|
+ roomName : "test",
|
|
50
|
+ parentNode: document.querySelector('#jitsi'),
|
|
51
|
+ // has external API use iframe, height is a problem
|
|
52
|
+ height: 800,
|
|
53
|
+ no_SSL: true,
|
|
54
|
+ configOverwrite: {
|
|
55
|
+ enableWelcomePage: false,
|
|
56
|
+ enableUserRolesBasedOnToken: true,
|
|
57
|
+ /*
|
|
58
|
+ Example of how it can be possible to use others auths.
|
|
59
|
+ This solution has some security issue.
|
|
60
|
+ see this rejected PR : https://github.com/jitsi/jitsi-meet/pull/2109
|
|
61
|
+ roomPassword: "plop",
|
|
62
|
+ userJid: "john@auth.prosody",
|
|
63
|
+ userPassword: "j",
|
|
64
|
+ */
|
|
65
|
+ },
|
|
66
|
+ interfaceConfigOverwrite: {
|
|
67
|
+ ##DEFAULT_BACKGROUND: '#FFFFFF',
|
|
68
|
+ SHOW_JITSI_WATERMARK: false,
|
|
69
|
+ SHOW_POWERED_BY: false,
|
|
70
|
+ SHOW_WATERMARK_FOR_GUESTS: false,
|
|
71
|
+ LANG_DETECTION: true,
|
|
72
|
+ USE_ID_AS_DEFAULT_DISPLAY_NAME: true,
|
|
73
|
+ TOOLBAR_BUTTONS: [
|
|
74
|
+ //main toolbar
|
|
75
|
+ 'microphone', 'camera', 'desktop', 'fullscreen', 'fodeviceselection', // jshint ignore:line
|
|
76
|
+ //extended toolbar
|
|
77
|
+ 'contacts', 'settings', 'raisehand', 'videoquality','hangup','chat'], // jshint ignore:line
|
|
78
|
+ MAIN_TOOLBAR_BUTTONS: ['microphone', 'camera', 'desktop', 'fullscreen', 'fodeviceselection',
|
|
79
|
+ 'contacts', 'info', 'settings', 'raisehand', 'videoquality','hangup'] // jshint ignore:line
|
|
80
|
+ }
|
|
81
|
+
|
|
82
|
+ };
|
|
83
|
+ var api = new JitsiMeetExternalAPI(domain, options);
|
|
84
|
+ // Display name in jitsi-meet use XEP-0172 for MUC, which is discouraged,
|
|
85
|
+ // when others clients use resource part of the Jabber id to do it.
|
|
86
|
+ // That's why displayName compat with others XMPP client is not optimal.
|
|
87
|
+ // check this : https://github.com/jitsi/jitsi-meet/pull/2068
|
|
88
|
+ api.executeCommand('displayName', 'Bidule');
|
|
89
|
+ // We can override also avatar.
|
|
90
|
+ api.executeCommand('avatarUrl', 'https://avatars0.githubusercontent.com/u/3671647');
|
|
91
|
+ </script>
|
|
92
|
+ /* Candy chat iframe, just for some test
|
|
93
|
+ https://github.com/candy-chat/candy
|
|
94
|
+ <iframe src="/assets/candy/index.html"
|
|
95
|
+ width=100%
|
|
96
|
+ height=300px>
|
|
97
|
+ </iframe>
|
|
98
|
+ */
|
|
99
|
+</div>
|
|
100
|
+
|