Hierarchy

  • default<IVideoEffectManagerListener>
    • VideoEffectManager

Methods

  • 开启本地视频画面混流功能

    Example

    rtsClient.enableMixing(true);
    

    Parameters

    • enable: boolean

      是否开启,默认不开启

    Returns void

  • 获取指定输入源的布局参数,如果不传 streamId 则返回所有布局

    Example

    const layoutConfig = videoEffectManager.getLayout('stream-a');
    

    Parameters

    • Optional streamId: string

      设备id

    Returns undefined | ILayoutConfig | ILayoutConfig[]

  • 获取最终采用的混流参数

    Returns

    混流参数

    Example

    const mixingConfig = videoEffectManager.getMixingConfig();
    

    Returns undefined | IMixingConfig

  • 设置指定流布局参数

    Example

    // 单个设置
    videoEffectManager.setLayout({
    streamId: 'stream-a',
    x: 100,
    y: 100,
    width: 500,
    height: 500
    });

    // 批量设置
    videoEffectManager.setLayout([
    {
    streamId: 'stream-a',
    x: 250,
    y: 250,
    width: 500,
    height: 500,
    zOrder: 0
    },
    {
    streamId: 'stream-b',
    x: 750,
    y: 750,
    width: 500,
    height: 500,
    zOrder: 1
    }
    ])

    Parameters

    Returns void

  • 设置混流参数

    Example

    videoEffectManager.setMixingConfig({
    videoWidth: 1280,
    videoHeight: 720
    })

    Parameters

    Returns void