You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example demonstrates the event-driven API for handling incoming calls. The plugin uses callbacks to notify you of incoming calls, and you can accept them by calling `accept()` with the JSEP data from the event.
Copy file name to clipboardExpand all lines: docs/plugins.md
+212-4Lines changed: 212 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,25 +48,51 @@ if __name__ == "__main__":
48
48
49
49
## VideoCall Plugin
50
50
51
-
The VideoCall plugin enables one-to-one video calls between users. It handles user registration, call initiation, and call management.
51
+
The VideoCall plugin enables one-to-one video calls between users. It handles user registration, call initiation, and call management using an event-driven architecture.
52
52
53
-
### VideoCall Usage Example
53
+
### VideoCall Features
54
+
55
+
-**Event-Driven Architecture**: Uses callbacks for handling call events
56
+
-**User Registration**: Register unique usernames for receiving calls
57
+
-**Call Management**: Initiate, accept, and hang up calls
58
+
-**Media Control**: Configure audio/video settings and bitrate
59
+
-**WebRTC Configuration**: Optional custom STUN/TURN server configuration
60
+
61
+
### VideoCall Usage Examples
62
+
63
+
#### Making Outgoing Calls
54
64
55
65
```python
56
66
import asyncio
57
-
from janus_client import JanusSession, JanusVideoCallPlugin
67
+
from janus_client import JanusSession, JanusVideoCallPlugin, VideoCallEventType
58
68
from aiortc.contrib.media import MediaPlayer, MediaRecorder
0 commit comments