Skip to content

cfloersch/sdp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdp

Session Description Protocol implementation

An example of parsing a session description read from an input stream

SessionParser parser = new SessionParser();
SessionDescription sdp = parser.parse(inputstream);

Here is an example of building a session description

OriginBuilder origin = OriginBuilder.create();
origin.setUsername("joe").setSessionId("200");
SessionBuilder builder = SessionBuilder.create();
builder.setVersion(1).setOrigin(origin.build());
builder.setSessionName("Session Name").setInfo("My Info");

SessionDescription sdpOne = builder.build();

builder.setOrigin(OriginBuilder.create(builder.getOrigin()).setSessionId("201").build());
SessionDescription sdpTwo = builder.build();

builder.addEmail("joe@whatever.com").addEmail("fred@none.com");
SessionDescription sdpThree = builder.build();

For more info on Session Description Protocol please visit:

About

Session Description Protocol implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages