javascript - 在 bigbluebutton 中预上传幻灯片
问题描述
如何使用 bigbluebutton-js npm 包预上传幻灯片?
let meetingCreateUrl = await api.administration.create(roomName, roomId, {
attendeePW: attendeepassword,
moderatorPW: moderatorpassword,
record:true,
allowStartStopRecording:false,
autoStartRecording:true,
maxParticipants:200,
})
http(meetingCreateUrl)
解决方案
您需要像这样的 XML 将幻灯片添加到您的创建POST请求正文中:
<modules>
<module name="presentation">
<document url="http://www.sample-pdf.com/sample.pdf" filename="report.pdf"/>
<document name="sample-presentation.pdf">JVBERi0xLjQKJ....
[clipped here]
....0CiUlRU9GCg==
</document>
</module>
</modules>
只需确保您的请求是 Post 并且您需要为 bigbluebutton 服务器设置新配置以接受 Post 请求。
使用这两个链接以获得进一步的帮助:
推荐阅读
- julia - Julia Gadfly 的 Geom.bar 在给定水平方向参数时失败,但在垂直方向上工作正常 - 这是一个错误还是我错过了什么?
- javascript - 如果稍后选择了新选项,则获取选定的下拉值并获取新值?
- python-3.x - 根据另一个数据框替换列中的值
- java - 如何更改Tomcat类路径
- embedded - VHDL 信号是在流程结束时修改还是有修改延迟?
- android - 展开后如何折叠 PreferenceCategory 项的行?
- arduino - Edtracker - 在“{”标记之前不允许函数定义
- sql - 多对多关系中的复杂查询
- android - ImageAnalysis.Analyzer 放在 cameraProvider.bindToLifecycle 上时什么也不做
- java - 如何在 FFmpeg 代码执行中使用我创建的新文件作为输出文件?获取 E/mobile-ffmpeg: outputFile.mp3 权限被拒绝