librestreaming icon indicating copy to clipboard operation
librestreaming copied to clipboard

Crash when change targetVideoSize

Open theblue1102 opened this issue 7 years ago • 4 comments

Hi all , when i changed targetVideoSize to HD but app crash and my filter is FilterMode.HARD , i dont want use FilterMode.SOFT .

  • My config : resConfig.setTargetVideoSize(new Size(1280, 720)); resConfig.setBitRate(1000 * 1024); resConfig.setFilterMode(RESConfig.FilterMode.HARD);

  • Log when crash : NullPointerException at me.lake.librestreaming.client.RESVideoClient.setHardVideoFilter(RESVideoClient.java:359)

theblue1102 avatar Mar 13 '17 14:03 theblue1102

any detail?crash when you change filter?

lakeinchina avatar Mar 14 '17 09:03 lakeinchina

@lakeinchina no when i start with above config , but when i change targetVideoSize smaller then it works fine

theblue1102 avatar Mar 14 '17 16:03 theblue1102

I can`t get any idea from your description.you have to debug with yourself. does it crash with certain device? are you using sample project? does resClient.prepare() retrun flase?

lakeinchina avatar Mar 15 '17 03:03 lakeinchina

I test in Galaxy tab a . I think that bug is because device support camera size , how to adaptive targetVideoSize, Bitrate or check device support size from that change size correct ?

theblue1102 avatar Mar 17 '17 03:03 theblue1102