另外已支持iOS版,有需要的朋友联系QQ 2729404527
概述
支持边录制手机屏幕边推流、实时直播
如何调用插件
var getModel = uni.requireNativePlugin("yuange-YGRSPushModule");
开始录制屏幕并推流
callNativeStartRecordScreenPush() { const _this = this; getModel.callNativeStartRecordScreenPush({ 'liveUrl': _this.liveUrl,//推流地址 }, (ret) => { _this.title = JSON.stringify(ret); }) }
停止录制屏幕和推流
callNativeStopRecordScreenPush() { const _this = this; var ret = getModel.callNativeStopRecordScreenPush({ }, (ret) => { _this.title = JSON.stringify(ret); }) }
评论