This repository was archived by the owner on Dec 25, 2025. It is now read-only.
forked from zoboff/pyVideoSDK
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmethods.py
More file actions
1936 lines (1458 loc) · 55.2 KB
/
methods.py
File metadata and controls
1936 lines (1458 loc) · 55.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# from pyVideoSDK import VideoSDK
class Methods:
def __init__(self, videosdk):
self.videosdk = videosdk
def __del__(self):
pass
def call(self, peerId: str) -> None:
"""Make p2p call
Parameters
----------
peerId : str
A unique user ID (TrueConfID)
"""
command = {"method": "call", "peerId": peerId}
self.videosdk.command(command)
def accept(self):
"""Accept the call. The command is run immediately and the result of execution is received at once.
Response example
----------
{"event" : "commandExecution", "accept" : "ok"}
"""
command = {"method": "accept"}
self.videosdk.command(command)
def hangUp(self, forAll: bool = False):
"""End a call or a conference. The command is used when the conference has already been created.
hangUp() format is used during a video call. During group conferences both formats are used.
By using hangUp(False) format, you leave the conference, but other participants remain in the conference.
By using hangUp(True) the conference ends for all the participants.
hangUp(True) is used only if you are the conference owner, otherwise a failure occurs.
Positive response ("ok") means the command has been accepted for execution but has not been run executed yet.
Execution result will be received separately via notification.
Parameters
----------
forAll: bool
True - conference ends for all the participants;
False - you leave the conference, but other participants remain in the conference.
"""
command = {"method": "hangUp", "forAll": forAll}
self.videosdk.command(command)
def login(self, callId: str, password: str, encryptPassword: bool = True):
"""Login to TrueConf Server"""
command = {"method" : "login",
"login" : callId,
"password" : password,
"encryptPassword" : encryptPassword}
self.videosdk.command(command)
def logout(self):
"""Log out the current user"""
command = {"method": "logout"}
self.videosdk.command(command)
def connectToServer(self, server: str, port: int = 4307):
"""Connect to TrueConf Server
Parameters:
server: str
Server address. For example, IP address;
port: int
Port. Default port is 4307.
"""
command = {"method": "connectToServer", "server": server, "port": port}
self.videosdk.command(command)
def sendCommand(self, peerId: str, command: str):
command = {"method": "sendCommand", "peerId": peerId, "command": command}
self.videosdk.command(command)
def showMainWindow(self, maximized: bool, stayOnTop: bool = True):
# state:
# 1 = minimized;
# 2 = full screen mode.
state = 1 if not maximized else 2
command = {"method": "changeWindowState", "windowState": state, "stayOnTop": stayOnTop}
self.videosdk.command(command)
def reject(self):
'''
The command allows to reject incoming call or invitation to the conference
'''
command = {"method": "reject"}
self.videosdk.command(command)
def rejectPeer(self, peerId: str):
'''
Reject user’s request to join your conference
Parameters:
peerId: str
unique user ID
'''
command = {"method": "rejectPeer", "peerId": peerId}
self.videosdk.command(command)
def acceptPeer(self, peerId: str):
'''
Accept a request from the user to participate in your conference
Parameters:
peerId: str
unique user ID
'''
command = {"method": "acceptPeer", "peerId": peerId}
self.videosdk.command(command)
def createConference(self, title: str, confType: str, autoAccept: bool, inviteList: list = None):
'''
Create a conference with specified parameters and participants
Parameters:
title: str
Title
confType: str
Conference type.
Must be follow values:
"symmetric" - symmetric
"asymmetric" - assymetric
"role" - role-based
autoAccept: bool
An indicator which gives permission to automatically accept participants into the conference
inviteList: list
List of strings with unique user identifiers (TrueConf ID) to whom an invitation to the conference will be sent
'''
if inviteList:
command = {"method": "createConference", "title": title, "confType": confType, "autoAccept": autoAccept, "inviteList": inviteList}
else:
command = {"method": "createConference", "title": title, "confType": confType, "autoAccept": autoAccept}
self.videosdk.command(command)
def getHardware(self):
'''
Requesting the list of hardware.
'''
command = {"method" : "getHardware"}
self.videosdk.command(command)
def acceptFile(self, id: int):
'''
Accept incoming file
Parameters:
id: int
request ID
'''
command = {"method": "acceptFile", "id": id}
self.videosdk.command(command)
def acceptInvitationToPodium(self):
'''
Accept an incoming request to the podium
'''
command = {"method": "acceptInvitationToPodium"}
self.videosdk.command(command)
def acceptRequestCameraControl(self, callId: str):
'''
Allow remote camera control
Parameters:
callId: str
User ID (TrueConf ID)
'''
command = {"method": "acceptRequestCameraControl", "callId": callId}
self.videosdk.command(command)
def acceptRequestToPodium(self, peerId: str):
'''
Allow the user to enter the podium
Parameters:
peerId: str
User ID (TrueConf ID)
'''
command = {"method": "acceptRequestToPodium", "peerId": peerId}
self.videosdk.command(command)
def activateLicense(self, key: str):
'''
Activate license key
Parameters:
key: str
Example::
sdk.activateLicense("G3K3-E929-837P-BHNQ-GKAV-GSLH-T5YU-3TJ8-ECWD-YBRV-J7A2")
'''
command = {"method": "activateLicense", "key": key}
self.videosdk.command(command)
def addSlide(self, fileId: int):
'''
Add a new slide to SlideShow
Parameters:
fileId: int
File ID in http-server
'''
command = {"method": "addSlide", "fileId": fileId}
self.videosdk.command(command)
def addToAbook(self, peerId: str, peerDn: str):
'''
Add a user to address book
Parameters:
peerId: str
User ID (TrueConf ID)
peerDn: str
Display name
'''
command = {"method": "addToAbook", "peerId" : peerId, "peerDn": peerDn}
self.videosdk.command(command)
def addToGroup(self, groupId: int, peerId: str):
'''
Add the user to a group in the address book
Parameters:
groupId: int
Group ID
peerId: str
User ID (TrueConf ID)
'''
command = {"method": "addToGroup", "groupId": groupId, "peerId": peerId}
self.videosdk.command(command)
def allowRecord(self, peerId: str):
'''
Allow video recording for a user
Parameters:
peerId: str
User ID (TrueConf ID)
'''
command = {"method": "allowRecord", "peerId": peerId}
self.videosdk.command(command)
def block(self, peerId: str):
'''
Add user to block list
Parameters:
peerId: str
User ID (TrueConf ID)
'''
command = {"method": "block", "peerId": peerId}
self.videosdk.command(command)
def changeCurrentMonitor(self, monitorIndex: int):
'''
Move the main window to the specified monitor
Parameters:
monitorIndex: int
The specified monitor's index
'''
command = {"method": "changeCurrentMonitor", "monitorIndex": monitorIndex}
self.videosdk.command(command)
def changeVideoMatrixType(self, matrixType: int):
'''
Change the current matrix (layout) type.
'''
command = {"method": "changeVideoMatrixType", "matrixType": matrixType}
self.videosdk.command(command)
def changeWindowState(self, windowState: int, stayOnTop: bool):
'''
Change the state of the main application window.
Parameters:
windowState: int
Window state
stayOnTop: bool
'''
command = {"method": "changeWindowState", "windowState": windowState, "stayOnTop": stayOnTop}
self.videosdk.command(command)
def chatClear(self, id: str):
'''
Clear a user's chat history
Parameters:
id: str
User ID (TrueConf ID)
'''
command = {"method": "chatClear", "id": id}
self.videosdk.command(command)
def clearCallHistory(self):
'''
Clear call history
'''
command = {"method": "clearCallHistory"}
self.videosdk.command(command)
def clearFileTransfer(self):
'''
Clear file sharing history and delete files
'''
command = {"method": "clearFileTransfer"}
self.videosdk.command(command)
def clearTokens(self):
'''
Clear all tokens
'''
command = {"method": "clearTokens"}
self.videosdk.command(command)
def connectToService(self):
'''
Connect to trueconf.com service
'''
command = {"method": "connectToService"}
self.videosdk.command(command)
def createGroup(self, name: str):
'''
Create a users group in address book
'''
command = {"method": "createGroup", "name": name}
self.videosdk.command(command)
def createNDIDevice(self, deviceId: str):
'''
Create an NDI source from a conference participant
Parameters:
deviceId: str
User ID (TrueConf ID)
Example::
sdk.createNDIDevice("user1@some.server")
'''
command = {"method": "createNDIDevice", "deviceId": deviceId}
self.videosdk.command(command)
def deleteData(self, containerName: str):
'''
Delete a data container
Parameters:
containerName: str
Container name
'''
command = {"method": "deleteData", "containerName": containerName}
self.videosdk.command(command)
def deleteFileTransferFile(self, fileId: int):
'''
Delete a file from the file sharing history
Parameters:
fileId: int
File ID
'''
command = {"method": "deleteFileTransferFile", "fileId": fileId}
self.videosdk.command(command)
def deleteNDIDevice(self, deviceId: str):
'''
Delete NDI source
Parameters:
deviceId: str
User ID (TrueConf ID)
Example::
sdk.deleteNDIDevice("user1@some.server")
'''
command = {"method": "deleteNDIDevice", "deviceId": deviceId}
self.videosdk.command(command)
def denyRecord(self, peerId: str):
'''
Deny recording audio stream and video stream
Parameters:
peerId: str
User ID (TrueConf ID)
'''
command = {"method": "denyRecord", "peerId": peerId}
self.videosdk.command(command)
def enableAudioReceiving(self, peerId: str, enable: bool):
'''
Enable or disable audio receiving from user - "peerId"
Parameters:
peerId: str
User ID (TrueConf ID)
enable: bool
'''
command = {"method": "enableAudioReceiving", "peerId": peerId, "enable": enable}
self.videosdk.command(command)
def enableVideoReceiving(self, peerId: str, enable: bool):
'''
Enable or disable video receiving from user - "peerId"
Parameters:
peerId: str
User ID (TrueConf ID)
enable: bool
Example::
# Switching video off from user "user1@some.server"
sdk.enableVideoReceiving("user1@some.server", False)
'''
command = {"method": "enableVideoReceiving", "peerId": peerId, "enable": enable}
self.videosdk.command(command)
def expandCallToMulti(self, title: str, inviteList: list):
'''
Transform the current videocall to a group conference
Parameters:
title: str
Conference title
inviteList: list
Invited list
Example::
sdk.expandCallToMulti(title="New group conference", inviteList=["user1@some.server", "user2@some.server", "user3@some.server"])
'''
command = {"method": "expandCallToMulti", "title": title, "inviteList": inviteList}
self.videosdk.command(command)
def fireMyEvent(self, data: str):
'''
Fire a custom event
Parameters:
data: str
Any data string
Example::
sdk.fireMyEvent("power off")
'''
command = {"method": "fireMyEvent", "data": data}
self.videosdk.command(command)
def getAbook(self):
'''
Request the address book
'''
command = {"method": "getAbook"}
self.videosdk.command(command)
def getAllUserContainersNames(self):
'''
Request names of all data containers
'''
command = {"method": "getAllUserContainersNames"}
self.videosdk.command(command)
def getAppSndDev(self):
'''
Request information about the current sound playback device
'''
command = {"method": "getAppSndDev"}
self.videosdk.command(command)
def getAppState(self):
'''
Request the application state
'''
command = {"method": "getAppState"}
self.videosdk.command(command)
def getAudioDelayDetectorInfo(self):
'''
Get an echo test information
'''
command = {"method": "getAudioDelayDetectorInfo"}
self.videosdk.command(command)
def getAudioMute(self):
'''
Get audio state
'''
command = {"method": "getAudioMute"}
self.videosdk.command(command)
def getAudioReceivingLevel(self, peerId: str):
'''
Get the current volume level of the conference participant
Parameters:
peerId: str
User ID (TrueConf ID)
'''
command = {"method": "getAudioReceivingLevel", "peerId": peerId}
self.videosdk.command(command)
def getAuthInfo(self):
'''
Get information about the type of protection for the administrator and user accounts
'''
command = {"method": "getAuthInfo"}
self.videosdk.command(command)
def getAvailableServersList(self):
command = {"method": "getAvailableServersList"}
self.videosdk.command(command)
def getBackground(self):
command = {"method": "getBackground"}
self.videosdk.command(command)
def getBanList(self):
'''
Get the list of blocked users
'''
command = {"method": "getBanList"}
self.videosdk.command(command)
def getBroadcastPicture(self):
'''
Get the name of the file containing the picture that can be broadcasted instead of your own video
'''
command = {"method": "getBroadcastPicture"}
self.videosdk.command(command)
def getBroadcastSelfie(self):
'''
Get to know if you can view the video using current camera
'''
command = {"method": "getBroadcastSelfie"}
self.videosdk.command(command)
def getCallHistory(self, count: int):
'''
Get a list of recent calls
Parameters:
count: int
Amount of requested calls
Example::
sdk.getCallHistory(10)
'''
command = {"method": "getCallHistory", "count": count}
self.videosdk.command(command)
def getChatLastMessages(self, id: str, beginNumber: int, count: int):
command = {"method": "getChatLastMessages", "id": id, "beginNumber": beginNumber, "count": count}
self.videosdk.command(command)
def getConferenceParticipants(self):
'''
To view conference participants list
'''
command = {"method": "getConferenceParticipants"}
self.videosdk.command(command)
def getConferences(self):
command = {"method": "getConferences"}
self.videosdk.command(command)
def getConnected(self):
command = {"method": "getConnected"}
self.videosdk.command(command)
def getContactDetails(self, peerId: str):
'''
Get contact’s personal details
Parameters:
peerId: str
User ID (TrueConf ID)
Example::
sdk.getContactDetails("user1@some.server")
'''
command = {"method": "getContactDetails", "peerId": peerId}
self.videosdk.command(command)
def getCreatedNDIDevices(self):
command = {"method": "getCreatedNDIDevices"}
self.videosdk.command(command)
def getCrop(self):
command = {"method": "getCrop"}
self.videosdk.command(command)
def getCurrentUserProfileUrl(self):
command = {"method": "getCurrentUserProfileUrl"}
self.videosdk.command(command)
def getDisplayNameById(self, peerId: str):
'''
Get display name using user ID
Parameters:
peerId: str
User ID (TrueConf ID)
Example::
sdk.getDisplayNameById("user1@some.server")
'''
command = {"method": "getDisplayNameById", "peerId": peerId}
self.videosdk.command(command)
def getFileInfo(self, id: int):
command = {"method": "getFileInfo", "id": id}
self.videosdk.command(command)
def getFileList(self):
'''
Get the list of URLs of downloaded files
'''
command = {"method": "getFileList"}
self.videosdk.command(command)
def getFileRequests(self):
'''
Get the list of incoming files
'''
command = {"method": "getFileRequests"}
self.videosdk.command(command)
def getFileTransferAvailability(self):
'''
Get file transfer availability
'''
command = {"method": "getFileTransferAvailability"}
self.videosdk.command(command)
def getFileTransferInfo(self):
'''
Get file transfer information
'''
command = {"method": "getFileTransferInfo"}
self.videosdk.command(command)
def getFileUploads(self):
'''
Get the list of outgoing files
'''
command = {"method": "getFileUploads"}
self.videosdk.command(command)
def getGroups(self):
'''
Get information about groups
'''
command = {"method": "getGroups"}
self.videosdk.command(command)
def getHardwareKey(self):
'''
Get a unique hardware key to create a license
'''
command = {"method": "getHardwareKey"}
self.videosdk.command(command)
def getHttpServerSettings(self):
'''
Get http server settings
'''
command = {"method": "getHttpServerSettings"}
self.videosdk.command(command)
def getHttpServerState(self):
'''
Get http server status
'''
command = {"method": "getHttpServerState"}
self.videosdk.command(command)
def getIncomingCameraControlRequests(self):
command = {"method": "getIncomingCameraControlRequests"}
self.videosdk.command(command)
def getInfoWidgetsState(self):
command = {"method": "getInfoWidgetsState"}
self.videosdk.command(command)
def getLastCallsViewTime(self):
command = {"method": "getLastCallsViewTime"}
self.videosdk.command(command)
def getLastSelectedConference(self):
command = {"method": "getLastSelectedConference"}
self.videosdk.command(command)
def getLastUsedServersList(self, count: int):
command = {"method": "getLastUsedServersList", "count": count}
self.videosdk.command(command)
def getLicenseServerStatus(self):
command = {"method": "getLicenseServerStatus"}
self.videosdk.command(command)
def getLicenseType(self):
'''
Get the information about pre-installed license
'''
command = {"method": "getLicenseType"}
self.videosdk.command(command)
def getListOfChats(self):
'''
Get the list of chats
'''
command = {"method": "getListOfChats"}
self.videosdk.command(command)
def getLogin(self):
command = {"method": "getLogin"}
self.videosdk.command(command)
def getLogo(self):
command = {"method": "getLogo"}
self.videosdk.command(command)
def getMaxConfTitleLength(self):
'''
Get maximum length of the conference title
'''
command = {"method": "getMaxConfTitleLength"}
self.videosdk.command(command)
def getMicMute(self):
'''
To get the information on the microphone state (turned on or turned off)
'''
command = {"method": "getMicMute"}
self.videosdk.command(command)
def getModes(self):
'''
Get the list of modes and pins for the specified capture board
'''
command = {"method": "getModes"}
self.videosdk.command(command)
def getMonitorsInfo(self):
'''
Get the information about monitors
'''
command = {"method": "getMonitorsInfo"}
self.videosdk.command(command)
def getNDIState(self):
command = {"method": "getNDIState"}
self.videosdk.command(command)
def getOutgoingBitrate(self):
command = {"method": "getOutgoingBitrate"}
self.videosdk.command(command)
def getOutgoingCameraControlRequests(self):
command = {"method": "getOutgoingCameraControlRequests"}
self.videosdk.command(command)
def getOutputSelfVideoRotateAngle(self):
command = {"method": "getOutputSelfVideoRotateAngle"}
self.videosdk.command(command)
def getProperties(self):
command = {"method": "getProperties"}
self.videosdk.command(command)
def getPtzControls(self):
command = {"method": "getPtzControls"}
self.videosdk.command(command)
def getRemotelyControlledCameras(self):
command = {"method": "getRemotelyControlledCameras"}
self.videosdk.command(command)
def getRenderInfo(self):
command = {"method": "getRenderInfo"}
self.videosdk.command(command)
def getScheduler(self):
command = {"method": "getScheduler"}
self.videosdk.command(command)
def getServerDomain(self):
command = {"method": "getServerDomain"}
self.videosdk.command(command)
def getSettings(self):
'''
Get the settings list
'''
command = {"method": "getSettings"}
self.videosdk.command(command)
def getSlideShowCache(self):
command = {"method": "getSlideShowCache"}
self.videosdk.command(command)
def getSlideShowInfo(self):
'''
Get information about the slideshow
'''
command = {"method": "getSlideShowInfo"}
self.videosdk.command(command)
def getSystemInfo(self):
command = {"method": "getSystemInfo"}
self.videosdk.command(command)
def getTariffRestrictions(self):
command = {"method": "getTariffRestrictions"}
self.videosdk.command(command)
def getTokenForHttpServer(self):
command = {"method": "getTokenForHttpServer"}
self.videosdk.command(command)
def getTrueConfRoomProKey(self):
command = {"method": "getTrueConfRoomProKey"}
self.videosdk.command(command)
def getVideoMatrix(self):
'''
Get the information about current video matrix
'''
command = {"method": "getVideoMatrix"}
self.videosdk.command(command)
def getVideoMute(self):
'''
Get current status of video streaming
'''
command = {"method": "getVideoMute"}
self.videosdk.command(command)
def gotoPodium(self):
'''
it is used to take the podium.
If you are the conference owner, you will take it immediately, if not, you will have to wait until the conference owner allows you to take the podium.
You will be informed about taking the podium with a respective notification (when the onRoleEventOccurred notification is received).
'''
command = {"method": "gotoPodium"}
self.videosdk.command(command)
def hideVideoSlot(self, callId: str):
'''
Hide video slot in layout
Parameters:
callId: str
User ID (TrueConf ID)
Example::
sdk.hideVideoSlot("user1@some.server")
'''
command = {"method": "hideVideoSlot", "callId": callId}
self.videosdk.command(command)
def inviteToConference(self, peerId: str):
'''
Invite a user into the conference. It can be used only by the conference owner
Parameters:
peerId: str
User ID (TrueConf ID)
Example::
sdk.inviteToConference("user1@some.server")
'''
command = {"method": "inviteToConference", "peerId": peerId}
self.videosdk.command(command)
def inviteToPodium(self, peerId: str):
'''
Invite a user to take the podium. The command is possible only in a group conference
Parameters:
peerId: str
User ID (TrueConf ID)
Example::
sdk.inviteToPodium("user1@some.server")
'''
command = {"method": "inviteToPodium", "peerId": peerId}
self.videosdk.command(command)
def kickFromPodium(self, peerId: str):
'''
Remove a conference participant from the tribune
Parameters:
peerId: str
User ID (TrueConf ID)
Example::
sdk.kickFromPodium("user1@some.server")
'''
command = {"method": "kickFromPodium", "peerId": peerId}
self.videosdk.command(command)
def kickPeer(self, peerId: str):
'''
Remove a participant from the conference using participant’s peerId. It is used only in video conferences and only by the conference owner
Parameters:
peerId: str
User ID (TrueConf ID)
Example::
sdk.kickPeer("user1@some.server")
'''
command = {"method": "kickPeer", "peerId": peerId}
self.videosdk.command(command)
def leavePodium(self):
'''
Leave the podium
'''
command = {"method": "leavePodium"}
self.videosdk.command(command)
def loadData(self, containerName: str):
'''
Retrieve previously saved user data
Parameters: