Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change video quality to 360p #5

Open
harrymelka opened this issue Mar 19, 2024 · 0 comments
Open

Change video quality to 360p #5

harrymelka opened this issue Mar 19, 2024 · 0 comments

Comments

@harrymelka
Copy link

Hello,

I would like to change my video quality when streaming. I tried changing profile, codec, width and height of the video, but it didn't work. I know I could do it in the server but I prefer to do it in the app.

Also what is NodePublisher.FLAG_AF is for ?

Thank you

NodePublisher.propTypes = {
    url: PropTypes.string,
    audioParam: PropTypes.shape({
        codecid: PropTypes.number,
        profile: PropTypes.number,
        samplerate: PropTypes.oneOf([8000, 16000, 32000, 44100, 48000]),
        channels: PropTypes.oneOf([1, 2]),
        bitrate: PropTypes.number,
    }),
    videoParam: PropTypes.shape({
        codecid: PropTypes.number,
        profile: PropTypes.number,
        width: PropTypes.number,
        height: PropTypes.number,
        fps: PropTypes.number,
        bitrate: PropTypes.number,
    }),
    cryptoKey: PropTypes.string,
    HWAccelEnable: PropTypes.bool,
    denoiseEnable: PropTypes.bool,
    torchEnable: PropTypes.bool,
    enhancedRtmp: PropTypes.bool,
    frontCamera: PropTypes.bool,
    cameraDevice: PropTypes.number,
    roomRatio: PropTypes.number,
    videoOrientation: PropTypes.number,
    keyFrameInterval: PropTypes.number,
    volume: PropTypes.number,
    onEvent: PropTypes.func,
};
NodePublisher.NMC_CODEC_ID_H264 = 27;
NodePublisher.NMC_CODEC_ID_H265 = 173;
NodePublisher.NMC_CODEC_ID_AAC = 86018;
NodePublisher.NMC_PROFILE_AUTO = 0;
NodePublisher.NMC_PROFILE_H264_BASELINE = 66;
NodePublisher.NMC_PROFILE_H264_MAIN = 77;
NodePublisher.NMC_PROFILE_H264_HIGH = 100;
NodePublisher.NMC_PROFILE_H265_MAIN = 1;
NodePublisher.NMC_PROFILE_AAC_LC = 1;
NodePublisher.NMC_PROFILE_AAC_HE = 4;
NodePublisher.NMC_PROFILE_AAC_HE_V2 = 28;
NodePublisher.NMC_PROFILE_AAC_LD = 22;
NodePublisher.NMC_PROFILE_AAC_ELD = 38;
NodePublisher.VIDEO_ORIENTATION_PORTRAIT = 1;
NodePublisher.VIDEO_ORIENTATION_LANDSCAPE_RIGHT = 3;
NodePublisher.VIDEO_ORIENTATION_LANDSCAPE_LEFT = 4;
NodePublisher.FLAG_AF = 1;
NodePublisher.FLAG_AE = 2;
NodePublisher.FLAG_AWB = 4;
NodePublisher.NMC_DEVICE_TYPE_WideAngleCamera = 0 // 广角
NodePublisher.NMC_DEVICE_TYPE_TelephotoCamera = 1 // 长焦
NodePublisher.NMC_DEVICE_TYPE_UltraWideCamera = 2 // 超广角
NodePublisher.NMC_DEVICE_TYPE_DualCamera = 3 // 双摄
NodePublisher.NMC_DEVICE_TYPE_TripleCamera = 4 // 三摄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant