librestreaming
librestreaming copied to clipboard
Crash when change targetVideoSize
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)
any detail?crash when you change filter?
@lakeinchina no when i start with above config , but when i change targetVideoSize smaller then it works fine
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?
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 ?