|
|
|
@ -131,6 +131,23 @@ def get_test_payload(event_type: str) -> dict: |
|
|
|
"duration": 3600, |
|
|
|
"status": "FINISHED" |
|
|
|
} |
|
|
|
}, |
|
|
|
'RECORDING_PROCEEDED': { |
|
|
|
"event": "recording_proceeded", |
|
|
|
"id": "880e8400-e29b-41d4-a716-446655440004", |
|
|
|
"createdAt": timestamp, |
|
|
|
"room": { |
|
|
|
"sid": "room-123456", |
|
|
|
"identity": "test-room-20240101120000", |
|
|
|
"name": "Test Class" |
|
|
|
}, |
|
|
|
"recording_info": { |
|
|
|
"recordId": "rec-123456", |
|
|
|
"recorderId": "node_01", |
|
|
|
"recorderMsg": "success", |
|
|
|
"filePath": "node_01/test-room-20240101120000/rec-123456.mp4", |
|
|
|
"fileSize": 0.38 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -218,6 +235,7 @@ def main(): |
|
|
|
print(" - participant_joined") |
|
|
|
print(" - participant_left") |
|
|
|
print(" - end_recording") |
|
|
|
print(" - RECORDING_PROCEEDED") |
|
|
|
print("\nOptions:") |
|
|
|
print(" --dry-run Show payload without sending request") |
|
|
|
sys.exit(1) |
|
|
|
|