Android native webrtc app stream quality -


i have problem android application using webrtc. in general working correctly on devices quality of stream terrible. using io.pristine:libjingle:9127@aar lib establish webrtc connection - compiled version of official webrtc android lib.

for example on nexus 5 video quality awesome 20-25% usage of cpu. on se sp quality terrible, cpu arround 50% (so still power available). both devices working on same wifi network.

as far know webrtc should pick video quality own, there way manually ?

i use following on ios limit framerate , resolution, giving library more room scale bitrate instead.

// initialize video constraints nsmutablearray *m = [[nsmutablearray alloc] init]; nsmutablearray *o = [[nsmutablearray alloc] init];  [m addobject:[[rtcpair alloc] initwithkey:@"minwidth" value:@"640"]]; [m addobject:[[rtcpair alloc] initwithkey:@"minheight" value:@"480"]]; [m addobject:[[rtcpair alloc] initwithkey:@"maxframerate" value:@"20"]];  // init constraints object app.videoconstraints = [[rtcmediaconstraints alloc] initwithmandatoryconstraints:m optionalconstraints:o]; 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -