CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-aiortc

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

87

1.02x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses aiortc's SRTP encryption capabilities to establish secure media connections and verify encryption status. The focus is on proper usage of RTCPeerConnection for SDP negotiation, accessing statistics to verify SRTP encryption, and handling incoming media tracks.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "RTCPeerConnection creation",
      "description": "Creates an RTCPeerConnection instance using the aiortc.RTCPeerConnection class",
      "max_score": 15
    },
    {
      "name": "SDP offer processing",
      "description": "Uses setRemoteDescription() method to process and set the remote SDP offer",
      "max_score": 15
    },
    {
      "name": "SDP answer generation",
      "description": "Uses createAnswer() method to generate an SDP answer for the peer connection",
      "max_score": 15
    },
    {
      "name": "Local description setup",
      "description": "Uses setLocalDescription() method to set the generated answer as the local description",
      "max_score": 15
    },
    {
      "name": "Statistics retrieval",
      "description": "Uses getStats() method on RTCPeerConnection to retrieve connection statistics after connection is established",
      "max_score": 20
    },
    {
      "name": "SRTP cipher verification",
      "description": "Accesses the srtpCipher property from RTCTransportStats to verify and report the SRTP protection profile being used",
      "max_score": 15
    },
    {
      "name": "Track event handling",
      "description": "Registers an event handler for the 'track' event on RTCPeerConnection to receive and count incoming media tracks",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-aiortc

tile.json