set_media_from_caps


Description:

[ Version ( since = "1.8" ) ]
public static Result set_media_from_caps (Caps caps, out Media media)

Mapping of caps to SDP fields:

a=rtpmap:(payload) (encoding_name) or (clock_rate)[or (encoding_params)]

a=framesize:(payload) (width)-(height)

a=fmtp:(payload) (param)[=(value)];...

a=rtcp-fb:(payload) (param1) [param2]...

a=extmap:(id)[/direction] (extensionname) (extensionattributes)

Parameters:

caps

a Caps

media

a Media

Returns:

a Result.