dart-sdp-transform
A simple parser/writer for the Session Description Protocol
- Stars
- 16
- Forks
- 11
- Last push (UTC)
- Aug 19, 2026
- Project status
- Active
Original README
English project snapshot. Visit GitHub for the latest content.
sdp-transform
Dart version of the sdp-transform JavaScript library.
dart-sdp-transform is a simple parser and writer of SDP. Defines internal grammar based on RFC4566 - SDP, RFC5245 - ICE, and many more.
Usage
import 'dart:io';
import 'dart:convert';
import 'package:sdp_transform/sdp_transform.dart';
main() {
new File('./test/ssrc.sdp').readAsString().then((String contents) {
print('original sdp => ' + contents);
var session = parse(contents);
print('convert to json => ' + json.encode(session));
var params = parseParams(session['media'][1]['fmtp'][0]['config']);
print('params => ' + params.toString());
var payloads = parsePayloads(session['media'][1]["payloads"]);
print('payloads => ' + payloads.toString());
String imageAttributesStr = "[x=1280,y=720] [x=320,y=180]";
var imageAttributes = parseImageAttributes(imageAttributesStr);
print('imageAttributes => ' + imageAttributes.toString());
// // a=simulcast:send 1,~4;2;3 recv c
String simulcastAttributesStr = "1,~4;2;3";
var simulcastAttributes = parseSimulcastStreamList(simulcastAttributesStr);
print('simulcastAttributes => ' + simulcastAttributes.toString());
var sdp = write(session, null);
print('convert to sdp => ' + sdp);
});
}
LanguagesDart
Categories
Dependencies used
Dependency list 1 items
- testDevelopment
^1.9.3
How do I choose a repository?
Start with your use case, compare repository activity, and check the original project before adopting it.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- Read the README, license and issues on GitHub before using a project.
Sources and maintenance
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗