This commit is contained in:
parent
e2dc0a58e0
commit
6b6d895ee3
|
|
@ -215,8 +215,8 @@ export const agora = {
|
||||||
SimulcastStreamMode.EnableSimulcastStream,
|
SimulcastStreamMode.EnableSimulcastStream,
|
||||||
{
|
{
|
||||||
dimensions: {
|
dimensions: {
|
||||||
width: 160,
|
width: 320,
|
||||||
height: 160
|
height: 180
|
||||||
},
|
},
|
||||||
framerate: 5,
|
framerate: 5,
|
||||||
}
|
}
|
||||||
|
|
@ -303,10 +303,11 @@ export const agora = {
|
||||||
},
|
},
|
||||||
// 摄像头采集
|
// 摄像头采集
|
||||||
startCameraCapture: async (bool: boolean = false) => {
|
startCameraCapture: async (bool: boolean = false) => {
|
||||||
|
console.log(bool);
|
||||||
await rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {
|
await rtcEngine.startCameraCapture(VideoSourceType.VideoSourceCamera, {
|
||||||
format: {
|
format: {
|
||||||
width: bool ? 120 : 1280,
|
width: bool ? 160 : 1280,
|
||||||
height: bool ? 120 : 1280,
|
height: bool ? 160 : 720,
|
||||||
fps: 15,
|
fps: 15,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue