or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/aiortc@1.13.x
tile.json

tessl/pypi-aiortc

tessl install tessl/pypi-aiortc@1.13.0

Python implementation of WebRTC and ORTC for real-time peer-to-peer communication

Agent Success

Agent success rate when using this tile

87%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.02x

Baseline

Agent success rate without this tile

85%

task.mdevals/scenario-10/

Secure Media Stream Recorder

Build a Python application that establishes a secure peer-to-peer media connection and verifies that encryption is properly enabled for media transmission.

Requirements

Your application should:

  1. Establish Secure Connection: Create a peer connection that negotiates SDP offer/answer and establishes a secure media connection.

  2. Access Transport Security: After connection establishment, access the underlying transport layer to verify encryption is active.

  3. Check SRTP Profile: Query and report which SRTP protection profile is being used for the secure media transmission.

  4. Receive Media: Listen for incoming media tracks and confirm they are being received over the encrypted transport.

Implementation Details

  • Create a Python script secure_recorder.py that:
    • Creates a peer connection
    • Processes an SDP offer (can be hard-coded for simplicity)
    • Generates and outputs an SDP answer
    • After the connection is established, accesses the DTLS transport
    • Checks if SRTP is active and reports the protection profile
    • Listens for incoming tracks for at least 3 seconds
    • Prints encryption verification results

Output Format

Your program should print:

Connection established
SRTP Active: [Yes/No]
Protection Profile: [profile name, e.g., SRTP_AEAD_AES_128_GCM]
Received [N] track(s)

Test Cases

  • The application successfully creates a peer connection and processes SDP offer/answer @test
  • After connection, the application can access transport layer and verify SRTP is active @test
  • The application correctly reports the SRTP protection profile name @test

@generates

Dependencies { .dependencies }

aiortc { .dependency }

Provides WebRTC implementation with secure real-time media transport capabilities.

av { .dependency }

Provides media encoding and file output support.