vue项目中使用"agora-rtc-sdk": "3.0.0",本地正常运行、打包部署后报错

web端;
屏幕共享和视频通话功能;
在vue中集成,“agora-rtc-sdk”: “3.0.0”;
本地测试一切ok;
打包后部署到测试服务器上,用Nginx,报如下错入:
09:27:01:396 Agora-SDK [INFO]: [40C94] Join channel 9809630141 success, join with uid: host_screen.
chunk-2d0da3b3.45b0e2e9.js:3 09:27:01:400 Agora-SDK [DEBUG]: Create stream
chunk-2d0da3b3.45b0e2e9.js:3 09:27:01:406 Agora-SDK [DEBUG]: [host_screen] Requested access to local media
chunk-2d0da3b3.45b0e2e9.js:3 09:27:01:408 Agora-SDK [ERROR]: [host_screen] Stream init: TypeError: Cannot read properties of undefined (reading ‘getDisplayMedia’)
at b (chunk-2d0da3b3.45b0e2e9.js:3)
at Object.O.t.init (chunk-2d0da3b3.45b0e2e9.js:3)
at chunk-7e71dcf4.170a7911.js:1
at callback (chunk-2d0da3b3.45b0e2e9.js:15)
at chunk-2d0da3b3.45b0e2e9.js:3
at chunk-2d0da3b3.45b0e2e9.js:15
at chunk-2d0da3b3.45b0e2e9.js:3
at Object. (chunk-2d0da3b3.45b0e2e9.js:3)
at Array.n (chunk-2d0da3b3.45b0e2e9.js:3)
at Object.e.dispatchEvent (chunk-2d0da3b3.45b0e2e9.js:3)

Cannot read properties of undefined (reading ‘getDisplayMedia’)是因为getDisplayMedia没有定义,检查下是否定义