Skip to content
pubscout

sdp_transform

0.4.0, released 6 weeks ago by an unverified publisher

Parse and write SDP strings in Dart.

WASM-ready
$ flutter pub add sdp_transform
Source repository

What it does

Provides functions to parse Session Description Protocol (SDP) text into JSON-like maps and to serialize those structures back to SDP. Includes helpers for parsing specific SDP attributes like payloads and simulcast.

AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to handle WebRTC signaling data in a Flutter app.
  • You require a pure‑Dart SDP parser/writer without native dependencies.

Skip it when

  • You only need high‑level WebRTC APIs that abstract SDP handling.
  • You need a full‑featured media negotiation library rather than just parsing.

Strengths

  • Zero dependencies and pure Dart implementation.
  • Supports RFC‑compliant parsing and writing, including recent grammar updates.

Weaknesses

  • Limited to SDP parsing/writing; no higher‑level WebRTC utilities.
  • No built‑in validation beyond basic parsing.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'dart:io';
import 'dart:convert';
import 'package:sdp_transform/sdp_transform.dart';

void main() async {
  final contents = await File('./test/ssrc.sdp').readAsString();
  final session = parse(contents);
  print(json.encode(session));
  final sdp = write(session, null);
  print(sdp);
}

Alternatives

Packages that do the same job and could replace sdp_transform.

Works with

Packages commonly used together with sdp_transform: ones it builds on, ones built on it, and its own family.