react-native-nodemediaclient
react-native-nodemediaclient copied to clipboard
How to set the published video dimensions?
For the preview video generated by NodeCameraView
, I can set the style of it to have a nice vertical fullscreen video.
But the published video seems to have a hard coded (default) size. So the video as viewed in NodePlayerView
is cropped.
So how to solve this problem?
Hi you try this lib in this days?, I have a problem on android with camera "Accessing view manager configs directly off UIManager via UIManager['RCTVideo'] is no longer supported." Do you have a problem with camera on android too? thanks
Oh I've got this problem too. Have you solved it yet?
try changing the preset of the video prop, it’s not documented anywhere, that’s strange
The Android source code contains these video presets:
public static final int VIDEO_PPRESET_16X9_270 = 0;
public static final int VIDEO_PPRESET_16X9_360 = 1;
public static final int VIDEO_PPRESET_16X9_480 = 2;
public static final int VIDEO_PPRESET_16X9_540 = 3;
public static final int VIDEO_PPRESET_16X9_720 = 4;
public static final int VIDEO_PPRESET_4X3_270 = 10;
public static final int VIDEO_PPRESET_4X3_360 = 11;
public static final int VIDEO_PPRESET_4X3_480 = 12;
public static final int VIDEO_PPRESET_4X3_540 = 13;
public static final int VIDEO_PPRESET_4X3_720 = 14;
public static final int VIDEO_PPRESET_1X1_270 = 20;
public static final int VIDEO_PPRESET_1X1_360 = 21;
public static final int VIDEO_PPRESET_1X1_480 = 22;
public static final int VIDEO_PPRESET_1X1_540 = 23;
public static final int VIDEO_PPRESET_1X1_720 = 24;
The same problem arises, how to set the size and resolution
I changed the preset to 4 and server shows hd size but low quality! @pmagnussen
The Android source code contains these video presets:
public static final int VIDEO_PPRESET_16X9_270 = 0; public static final int VIDEO_PPRESET_16X9_360 = 1; public static final int VIDEO_PPRESET_16X9_480 = 2; public static final int VIDEO_PPRESET_16X9_540 = 3; public static final int VIDEO_PPRESET_16X9_720 = 4; public static final int VIDEO_PPRESET_4X3_270 = 10; public static final int VIDEO_PPRESET_4X3_360 = 11; public static final int VIDEO_PPRESET_4X3_480 = 12; public static final int VIDEO_PPRESET_4X3_540 = 13; public static final int VIDEO_PPRESET_4X3_720 = 14; public static final int VIDEO_PPRESET_1X1_270 = 20; public static final int VIDEO_PPRESET_1X1_360 = 21; public static final int VIDEO_PPRESET_1X1_480 = 22; public static final int VIDEO_PPRESET_1X1_540 = 23; public static final int VIDEO_PPRESET_1X1_720 = 24;
Just resize the video no changes in Actual quality, I need to capture HD :(((
@cybercoder any update on this?
Any update?