webrtc: use the nick to set enum type properties on openh264enc
The properties rate-control
and complexity
are of enum types and passing
a gint value is resulting in a panic. So pass the corresponding nick of the enum
value instead
Below is the RUST_BACKTRACE information:
property 'rate-control' of type 'GstOpenh264Enc' can't be set from the given type (expected: 'RC_MODES', got: 'gint')
Edited by Taruntej Kanakamalla