startVideo abstract method

Future<JCMediaDeviceVideoCanvas> startVideo(
  1. String? videoSource,
  2. int renderType
)

开始其他端的视频渲染

获取其他端的视频预览对象 JCMediaDeviceVideoCanvas ,通过此对象能获得视图用于UI显示
一对一通话建议使用 @ref JCCallItem.startOtherVideo "startOtherVideo" 方法代替,频道建议使用 @ref JCMediaChannelParticipant.startVideo "startVideo" 方法代替

videoSource 渲染标识串,通过 JCMediaChannelParticipant 的 @ref JCMediaChannelParticipant.getRenderId "getRenderId" 方法和 JCCallItem 的 @ref JCCallItem.getRenderId "getRenderId" 方法可以得到 renderType 渲染模式: - @ref RENDER_FULL_SCREEN : 铺满窗口 - @ref RENDER_FULL_CONTENT : 全图像显示,会有黑边 - @ref RENDER_FULL_AUTO : 自适应 @return JCMediaDeviceVideoCanvas 对象

Implementation

Future<JCMediaDeviceVideoCanvas> startVideo(
    String? videoSource, int renderType);